제출 #705633

#제출 시각아이디문제언어결과실행 시간메모리
705633mseebacherCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void solve(){ set<int> s1,s2,s3; for(int i = 1;i<=6;i++){ s1.insert(i); s2.insert(i); s3.insert(i); } s2.insert(7); s2.insert(8); s2.insert(9); s2.insert(10); int i = 0; int erg = -1; while(erg != 0){ erg = Theory(*s1.begin(),*s2.begin(),*s3.begin()); if(erg == 1) s1.erase(*s1.begin()); if(erg == 2) s2.erase(*s2.begin()); if(erg == 3) s3.erase(*s3.begin()); } }

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

cluedo.cpp: In function 'void solve()':
cluedo.cpp:19:8: error: 'Theory' was not declared in this scope
   19 |  erg = Theory(*s1.begin(),*s2.begin(),*s3.begin());
      |        ^~~~~~
cluedo.cpp:16:6: warning: unused variable 'i' [-Wunused-variable]
   16 |  int i = 0;
      |      ^