Submission #341948

#TimeUsernameProblemLanguageResultExecution timeMemory
341948AlmaCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <string>
using namespace std;

void solve () {
    int M = 1; int L = 1; int W = 1;
    while (theory (M, L, W) != 0) {
        if (theory (M, L, W) == 1) { M++; }
        else if (theory (M, L, W) == 2) { L++; }
        else { W++; }
    }
    cout << "(" << M << ", " << L << ", " << W << ")" << endl;
}

int main() {
    solve();
}

Compilation message (stderr)

cluedo.cpp: In function 'void solve()':
cluedo.cpp:12:12: error: 'theory' was not declared in this scope
   12 |     while (theory (M, L, W) != 0) {
      |            ^~~~~~