Submission #243069

#TimeUsernameProblemLanguageResultExecution timeMemory
243069johuthaCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" #include <vector> using namespace std; void Solve(){ vector<int> h(3, 0); for (int i = 0; i < 20; i++) { int r = theory(h[0], h[1], h[2]); if (r == 0) break; h[r - 1]++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:12:13: error: 'theory' was not declared in this scope
     int r = theory(h[0], h[1], h[2]);
             ^~~~~~
cluedo.cpp:12:13: note: suggested alternative: 'Theory'
     int r = theory(h[0], h[1], h[2]);
             ^~~~~~
             Theory