제출 #341948

#제출 시각아이디문제언어결과실행 시간메모리
341948AlmaCluedo (IOI10_cluedo)C++14
컴파일 에러
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(); }

컴파일 시 표준 에러 (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) {
      |            ^~~~~~