Submission #1315228

#TimeUsernameProblemLanguageResultExecution timeMemory
1315228hayford08Cluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
void Solve() {
   // brute force through all possible combinations
   for (int m = 1; m <= 6; m++) {
      for (int l = 1; l <= 10; l++) {
         for (int w = 1; w <= 6; w++) {
            int response = Theory(m, l, w);
            if (response == 0) {
               return;
            }
         }
      }
   }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:28: error: 'Theory' was not declared in this scope
    6 |             int response = Theory(m, l, w);
      |                            ^~~~~~