Submission #474022

# Submission time Handle Problem Language Result Execution time Memory
474022 2021-09-16T15:39:30 Z ValiAntonie Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
 
void Solve(){
   int r, a = 1, b = 1, c= 1;
   for(int i=1;i<=3;i++){
   r = Theory(a,b,c);
   while(r == 1){
   a++;
   r = Theory(a,b,c);
   }
   while(r == 2){
   b++;
   r = Theory(a,b,c);
   }
   while(r == 3){
   c++;
   r = Theory(a,b,c);
   }
   if (r == 0)
    return;
   }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:8: error: 'Theory' was not declared in this scope
    5 |    r = Theory(a,b,c);
      |        ^~~~~~