Submission #1284191

#TimeUsernameProblemLanguageResultExecution timeMemory
1284191ggillianjiangCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"

using namespace std;

int Theory(int M, int L, int W);

void Solve(){
   int m, l, w;
   m=0;
   l=0;
   w=0;
   while(true){
      t = Theory(m, l, w);
      if(t==0) break;
      else if(t==1) m++;
      else if(t==2) l++;
      else w++;
   }

   return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:7: error: 't' was not declared in this scope
   14 |       t = Theory(m, l, w);
      |       ^