Submission #411415

#TimeUsernameProblemLanguageResultExecution timeMemory
411415alextodoranCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
/** ____ ____ ____ ____ ____ ||a |||t |||o |||d |||o || ||__|||__|||__|||__|||__|| |/__\|/__\|/__\|/__\|/__\| **/ #include <bits/stdc++.h> #include "cluedo.h" using namespace std; typedef long long ll; void Solve () { vector <int> va, vb, vc; for(int i = 1; i <= 6; i++) va.push_back(i); for(int i = 1; i <= 10; i++) vb.push_back(i); for(int i = 1; i <= 6; i++) vc.push_back(i); while(true) { int clue = Theory(va.back(), vb.back(), vc.back()); if(clue == 0) return; if(clue == 1) va.pop_back(); if(clue == 2) vb.pop_back(); if(clue == 3) vc.pop_back(); } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:27:20: error: 'Theory' was not declared in this scope
   27 |         int clue = Theory(va.back(), vb.back(), vc.back());
      |                    ^~~~~~