Submission #1024626

#TimeUsernameProblemLanguageResultExecution timeMemory
1024626vjudge1Cluedo (IOI10_cluedo)C++11
Compilation error
0 ms0 KiB

#include <bits/stdc++.h>

using namespace std;

void Solve()
{
	int i,j,k, res;

	i = 0;
	j = 0;
	k = 0;

	while(res = theory(i, j, k)) {
		if (res == 1) i++;
		else if (res == 3) k++;
		else j++;
	}
}

int main() {

	return 0;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:14: error: 'theory' was not declared in this scope
   14 |  while(res = theory(i, j, k)) {
      |              ^~~~~~