Submission #341218

# Submission time Handle Problem Language Result Execution time Memory
341218 2020-12-29T08:49:10 Z BlancaHM Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
void Solve() {
	int asesino = 1;
	int arma = 1;
	int lugar = 1;
	int pista;
	while(true) {
		pista = Theory(asesino, lugar, arma);
		if (pista == 0)
			return;
		else if (pista == 1)
			asesino++;
		else if (pista == 2)
			lugar++;
		else
			arma++;
	}
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:11: error: 'Theory' was not declared in this scope
    7 |   pista = Theory(asesino, lugar, arma);
      |           ^~~~~~