Submission #1223575

#TimeUsernameProblemLanguageResultExecution timeMemory
1223575islam_2010Cluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;




void Solve(){
    int f, s, t;
    for(int i = 1; i <= 6; i++){
        int a = Theory(i, 1, 1);
        if(a==0){
            return;
        }
        if(a!=1){
            f = i;
            break;
        }
    }for(int i = 1; i <= 10; i++){
        int a = Theory(f, i, 1);
        if(a==0){
            return;
        }
        if(a!=2){
            s = i;
            break;
        }
    }for(int i = 1; i <= 6; i++){
        int a = Theory(f, s, i);
        if(a==0){
            return;
        }
        if(a!=3){
            t = i;
            break;
        }
    }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:11:17: error: 'Theory' was not declared in this scope
   11 |         int a = Theory(i, 1, 1);
      |                 ^~~~~~
cluedo.cpp:20:17: error: 'Theory' was not declared in this scope
   20 |         int a = Theory(f, i, 1);
      |                 ^~~~~~
cluedo.cpp:29:17: error: 'Theory' was not declared in this scope
   29 |         int a = Theory(f, s, i);
      |                 ^~~~~~