Submission #1223863

#TimeUsernameProblemLanguageResultExecution timeMemory
1223863rhm_ganCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "debug.h" #else #define dbg(...) 42 #endif void Solve() { set<int> a, b, c; for (int i = 1; i <= 10; i++) { if (i <= 6) { a.insert(i); b.insert(i); } c.insert(i); } for (int i = 0; i < 19; i++) { int A = *a.rbegin(); int B = *b.rbegin(); int C = *c.rbegin(); int x = Theory(A, B, C); if (x == 1) a.erase(A); if (x == 2) b.erase(B); if (x == 3) c.erase(C); } int A = *a.rbegin(); int B = *b.rbegin(); int C = *c.rbegin(); Theory(A, B, C); return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:24:25: error: 'Theory' was not declared in this scope
   24 |                 int x = Theory(A, B, C);
      |                         ^~~~~~
cluedo.cpp:32:9: error: 'Theory' was not declared in this scope
   32 |         Theory(A, B, C);
      |         ^~~~~~