Submission #410726

# Submission time Handle Problem Language Result Execution time Memory
410726 2021-05-23T13:05:26 Z Berted Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#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

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]);
      |            ^~~~~~