제출 #737065

#제출 시각아이디문제언어결과실행 시간메모리
737065sandry24Cluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "cluedo.h" using namespace std; #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; #define pb push_back #define mp make_pair #define f first #define s second void Solve(){ int ask[3] = {1, 1, 1}; while(true){ int ans = Theory(ask[0], ask[1], ask[2]); if(ans == 0) break; ask[ans-1]++; } return; }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:18:19: error: 'Theory' was not declared in this scope
   18 |         int ans = Theory(ask[0], ask[1], ask[2]);
      |                   ^~~~~~