Submission #715493

#TimeUsernameProblemLanguageResultExecution timeMemory
715493vjudge1Cluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int a = 1, b = 1, c = 1 int r = Theory(a, b, c); while(r != 0){ if(r == 1){ r = Theory(a + 1, b, c); } else if(r == 2){ r = Theory(a, b + 1, c); } else if(r == 3){ r = Theory(a, b, c + 1); } else{ return; } } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:4: error: expected ',' or ';' before 'int'
    6 |    int r = Theory(a, b, c);
      |    ^~~
cluedo.cpp:7:10: error: 'r' was not declared in this scope
    7 |    while(r != 0){
      |          ^