Submission #652568

#TimeUsernameProblemLanguageResultExecution timeMemory
652568ngano_upat_naCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; void Solve() { int mur = 1, loc = 1, wep = 1; int res = -1; while (true) { int res = Theory(mur,loc,wep); if (res == 0) return; if (res == 1) mur++; if (res == 2) loc++; if (res == 3) wep++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:19: error: 'Theory' was not declared in this scope
    8 |         int res = Theory(mur,loc,wep);
      |                   ^~~~~~
cluedo.cpp:6:9: warning: unused variable 'res' [-Wunused-variable]
    6 |     int res = -1;
      |         ^~~