Submission #410726

#TimeUsernameProblemLanguageResultExecution timeMemory
410726BertedCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "cluedo.h"

int T[3];

void Solve()
{
	T[0] = T[1] = T[2] = 1;
	int ans = Theory(T[0], T[1], T[2]);
	while (ans)
	{
		T[ans - 1]++;
		ans = Theory(T[0], T[1], T[2]);
	}
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:12: error: 'Theory' was not declared in this scope
    8 |  int ans = Theory(T[0], T[1], T[2]);
      |            ^~~~~~