Submission #313625

# Submission time Handle Problem Language Result Execution time Memory
313625 2020-10-16T12:18:21 Z Dan4Life Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "cluedo.h"
using namespace std;

void Solve()
{
    int i = 1, j = 1, k = 1, ans = 20;
    while(ans--)
    {
        int x = Theory(i, j, k);
        if(x==1) i++;
        if(x==2) j++;
        if(x==3) k++;
        if(x==0) return;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:17: error: 'Theory' was not declared in this scope
   10 |         int x = Theory(i, j, k);
      |                 ^~~~~~