Submission #120594

# Submission time Handle Problem Language Result Execution time Memory
120594 2019-06-25T05:04:47 Z imsifile Chessboard Nonogram (FXCUP4_nonogram) C++17
Compilation error
0 ms 0 KB
#include "nonogram.h"
#include <stdio.h>

void SolveNonogram(int N, int M, std::vector<std::vector<int>> Rclue, std::vector<std::vector<int>> Cclue) {
	for(int i=1; i<=M; i++){
		if(Cclue[i-1][0]) Fill(1, i);
	}
}

Compilation message

nonogram.cpp: In function 'void SolveNonogram(int, int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)':
nonogram.cpp:4:6: error: ambiguating new declaration of 'void SolveNonogram(int, int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)'
 void SolveNonogram(int N, int M, std::vector<std::vector<int>> Rclue, std::vector<std::vector<int>> Cclue) {
      ^~~~~~~~~~~~~
In file included from nonogram.cpp:1:0:
nonogram.h:3:31: note: old declaration 'std::vector<std::vector<int> > SolveNonogram(int, int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)'
 std::vector<std::vector<int>> SolveNonogram(int N, int M, std::vector<std::vector<int>> Rclue, std::vector<std::vector<int>> Cclue);
                               ^~~~~~~~~~~~~