Submission #864231

#TimeUsernameProblemLanguageResultExecution timeMemory
864231gutzzyCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

void Solve(){
    int murderer = 1;
    int location = 1;
    int weapon = 1;
    int ans = Theory(murderer,location,weapon);
    while(ans!=0){
        if(ans==1) murderer++;
        else if(ans==2) location++;
        else weapon++;
        
        ans = Theory(murderer,location,weapon);
    }
    return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:15: error: 'Theory' was not declared in this scope
    8 |     int ans = Theory(murderer,location,weapon);
      |               ^~~~~~