Submission #1249254

#TimeUsernameProblemLanguageResultExecution timeMemory
1249254AlmontherCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
void Solve(){
    int i=1,j=1,k=1,inp;
    inp=Theory(i,j,k);
    while(!inp){
        if(inp==1) i++;
        else if(inp==2) j++;
        else k++;
        inp=Theory(i,j,k);
    }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:3:9: error: 'Theory' was not declared in this scope
    3 |     inp=Theory(i,j,k);
      |         ^~~~~~