Submission #775522

#TimeUsernameProblemLanguageResultExecution timeMemory
775522DobromirAngelovCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "cluedo.h" using namespace std; void Solve() { vector<int> v[3]; for(int i=1;i<=6;i++) v[0].push_back(i); for(int i=1;i<=10;i++) v[1].push_back(i); for(int i=1;i<=6;i++) v[2].push_back(i); for(;;) { int ret=Theory(v[0].back(), v[1].back(), v[2].back()); if(ret==0) return; v[ret-1].pop_back(); } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:15:17: error: 'Theory' was not declared in this scope
   15 |         int ret=Theory(v[0].back(), v[1].back(), v[2].back());
      |                 ^~~~~~