Submission #1024633

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

#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.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++;
	}
}


Compilation message (stderr)

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