제출 #1099336

#제출 시각아이디문제언어결과실행 시간메모리
1099336ZflopCluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ vector<bool>K(11,1),J(10,1); for (int i = 1; i <= 6;++i) { bool ok1 = true; for (int j = 1; j <= 6;++j) { bool ok3 = J[j]; for (int k = 1; k <= 10 && ok1 && ok3;++k) { if(K[k] == false) continue; int r = Theory(i,k,j); if(r == 1) ok1 = false; if(r == 3) ok3 = J[j] = false; if(r == 2) { K[k] = false; continue; } if(r == 0) return; } } } }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:5: error: 'vector' was not declared in this scope
    5 |     vector<bool>K(11,1),J(10,1);
      |     ^~~~~~
cluedo.cpp:5:12: error: expected primary-expression before 'bool'
    5 |     vector<bool>K(11,1),J(10,1);
      |            ^~~~
cluedo.cpp:9:24: error: 'J' was not declared in this scope
    9 |             bool ok3 = J[j];
      |                        ^
cluedo.cpp:11:20: error: 'K' was not declared in this scope
   11 |                 if(K[k] == false) continue;
      |                    ^
cluedo.cpp:16:21: error: 'K' was not declared in this scope
   16 |                     K[k] = false;
      |                     ^