Submission #477049

#TimeUsernameProblemLanguageResultExecution timeMemory
477049glomeCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "cluedo.h" #include<bits/stdc++.h> using namespace std; // Main // int Teoria(int c, int u, int a) void ResolverCaso() { int ask = 1; int ask2 = 1; int ask3 = 1; while(true) { int k = Theory(ask, ask2, ask3);; if(!k) { return; } else if(k == 1) { if(ask == 5) { ask = 6; continue; } ask++; } else if(k == 2) { if(ask2 == 9) { ask2 = 10; continue; } ask2++; } else { if(ask3 == 5) { ask3 = 6; continue; } ask3++; } } }

Compilation message (stderr)

cluedo.cpp: In function 'void ResolverCaso()':
cluedo.cpp:13:13: error: 'Theory' was not declared in this scope
   13 |     int k = Theory(ask, ask2, ask3);;
      |             ^~~~~~