제출 #758278

#제출 시각아이디문제언어결과실행 시간메모리
758278JANCARAPANCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define fi first #define se second #define sz(a) (long long) a.size() #define endl '\n' const long long INF = 1e18, MOD = 1e9+7; void Solve() { int i = 1, j = 1, k = 1; for (int t = 0; t < 20; t++) { int ans = Theory(i, j, k); if (ans == 0) return; if (ans == 1) i++; else if (ans == 2) j++; else k++; } } //signed main() { //ios_base::sync_with_stdio(false); //cin.tie(0); //int tt = 1; //cin >> tt; //while (tt--) { //test_case(); //} //return 0; //}

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

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