Submission #651688

#TimeUsernameProblemLanguageResultExecution timeMemory
651688LucaGregCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>

using namespace std;

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

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:17: error: 'theory' was not declared in this scope; did you mean 'Theory'?
   10 |         int t = theory(m, l, w);
      |                 ^~~~~~
      |                 Theory