Submission #1011271

#TimeUsernameProblemLanguageResultExecution timeMemory
1011271ereringCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define pb push_back
#define ll long long
#define int long long
const long long inf=1e9+1;
const int MOD=1e9+87;
const int N=3e6+1;
void Solve(){
    int r;
    int l1=1,l2=1,l3=1;
    for(int i=0;i<20;i++){
        int x=Theory(l1,l2,l3);
        if(x==0)return;
        if(x==1)l1++;
        if(x==2)l2++;
        if(x==3)l3++;
    }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:15: error: 'Theory' was not declared in this scope
   14 |         int x=Theory(l1,l2,l3);
      |               ^~~~~~
cluedo.cpp:11:9: warning: unused variable 'r' [-Wunused-variable]
   11 |     int r;
      |         ^