Submission #288406

#TimeUsernameProblemLanguageResultExecution timeMemory
288406fgojkoCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include <iostream> //#define THEORY using namespace std; const int boundries[3] = {6, 10, 6}; #ifdef THEORY int Theory(int m, int l, int w){ cout << "Murderer: " << m << endl; cout << "Location: " << l << endl; cout << "Weapon: " << w << endl; int res; cin >> res; return res; } #endif // THEORY void Solve(){ int theories[3] = {1, 1, 1}; int res = Theory(theories[0], theories[1], theories[2]); while(res != 0){ ++theories[res-1]; res = Theory(theories[0], theories[1], theories[2]); } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:22:15: error: 'Theory' was not declared in this scope
   22 |     int res = Theory(theories[0], theories[1], theories[2]);
      |               ^~~~~~