제출 #396559

#제출 시각아이디문제언어결과실행 시간메모리
396559ak2006Cluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void Solve() { int i = 1,j = 1,k = 1; int pos = Theory(i,j,k); while (pos != 0){ if (pos == 1)i++; if (pos == 2)j++; if (pos == 3)k++; pos = Theory(i,j,k); } }

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

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