Submission #705633

#TimeUsernameProblemLanguageResultExecution timeMemory
705633mseebacherCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void solve(){ set<int> s1,s2,s3; for(int i = 1;i<=6;i++){ s1.insert(i); s2.insert(i); s3.insert(i); } s2.insert(7); s2.insert(8); s2.insert(9); s2.insert(10); int i = 0; int erg = -1; while(erg != 0){ erg = Theory(*s1.begin(),*s2.begin(),*s3.begin()); if(erg == 1) s1.erase(*s1.begin()); if(erg == 2) s2.erase(*s2.begin()); if(erg == 3) s3.erase(*s3.begin()); } }

Compilation message (stderr)

cluedo.cpp: In function 'void solve()':
cluedo.cpp:19:8: error: 'Theory' was not declared in this scope
   19 |  erg = Theory(*s1.begin(),*s2.begin(),*s3.begin());
      |        ^~~~~~
cluedo.cpp:16:6: warning: unused variable 'i' [-Wunused-variable]
   16 |  int i = 0;
      |      ^