Submission #793891

#TimeUsernameProblemLanguageResultExecution timeMemory
793891I_Love_EliskaM_Cluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
#define forn(i,n)
#define pb push_back

void solve() {
   vector<int> p(3,1);
   while (1) {
      int x=Theory(p[0],p[1],p[2])-1;
      if (x==-1) return;
      p[x]++;
   }
}

Compilation message (stderr)

cluedo.cpp: In function 'void solve()':
cluedo.cpp:10:13: error: 'Theory' was not declared in this scope
   10 |       int x=Theory(p[0],p[1],p[2])-1;
      |             ^~~~~~