Submission #1175169

#TimeUsernameProblemLanguageResultExecution timeMemory
1175169natnichaCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
void Solve(){
    int r;
    int m=1,l=1,w=1;
    while(true){
         if(Theory(m,l,w)==0) return;
         if(Theory(m,l,w)==1){
             m++;
         }else if(Theory(m,l,w)==2){
             l++;
         }else if(Theory(m,l,w)==3){
             w++;
         }
    }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:13: error: 'Theory' was not declared in this scope
    5 |          if(Theory(m,l,w)==0) return;
      |             ^~~~~~
cluedo.cpp:6:13: error: 'Theory' was not declared in this scope
    6 |          if(Theory(m,l,w)==1){
      |             ^~~~~~