Submission #1011272

#TimeUsernameProblemLanguageResultExecution timeMemory
1011272ereringCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cluedo.h" using namespace std; 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:8:15: error: 'Theory' was not declared in this scope
    8 |         int x=Theory(l1,l2,l3);
      |               ^~~~~~
cluedo.cpp:5:9: warning: unused variable 'r' [-Wunused-variable]
    5 |     int r;
      |         ^