제출 #861219

#제출 시각아이디문제언어결과실행 시간메모리
861219AriadnaCluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB

#include <bits/stdc++.h>

using namespace std;

void Solve() {
    int murderer = 1, location = 1, weapon = 1;
    while (murderer <= 6 && location <= 10 && weapon <= 6) {
        int ans = Theory(murderer, location, weapon);
        if (ans == 1) ++murderer;
        else if (ans == 2) ++location;
        else if (ans == 3) ++weapon;
        else return;
    }
}

컴파일 시 표준 에러 (stderr) 메시지

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:19: error: 'Theory' was not declared in this scope
    9 |         int ans = Theory(murderer, location, weapon);
      |                   ^~~~~~