Submission #1284172

#TimeUsernameProblemLanguageResultExecution timeMemory
1284172ggillianjiangCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include <cstdio> #include <utility> using namespace std; #define m first.first #define l first.second #define w second /* int Theory(int mr, int lo, int wp){ int m2, l2, w2; scanf("%d %d %d", &m2, &l2, &w2); if(mr!=m2) return 1; if(lo!=l2) return 2; if(wp!=w2) return 3; else return 0; } */ void Solve(){ pair< pair<int, int> , int> mlw; int r; r = Theory(mlw.m, mlw.l, mlw.w); if (r == 0) return; else if(r==1) mlw.m++; else if(r==2) mlw.l++; else mlw.w++; } int main(){ Solve(); return 0; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:24:8: error: 'Theory' was not declared in this scope
   24 |    r = Theory(mlw.m, mlw.l, mlw.w);
      |        ^~~~~~