Submission #861157

#TimeUsernameProblemLanguageResultExecution timeMemory
861157lalig777Cluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
using namespace std;

void solve(){
    int a=1, b=1, c=1;
    while (true){
        if (Theory(a, b, c)==1) a++;
        else if (Theory(a, b, c)==2) b++;
        else if (Theory(a, b, c)==3) c++;
        else break;
    }return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void solve()':
cluedo.cpp:15:13: error: 'Theory' was not declared in this scope
   15 |         if (Theory(a, b, c)==1) a++;
      |             ^~~~~~