제출 #342068

#제출 시각아이디문제언어결과실행 시간메모리
342068IwanttobreakfreeCluedo (IOI10_cluedo)C++98
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"

void Solve(){
   int r;
   while (r!=0){
   cin>>M>>L>>W;
   r = Theory(1,2,3);
   if (r == 0) return;
}  while (r!=0){
   cin>>M>>L>>W;
   r = Theory(3,2,1);
   if (r == 0) return;
}  while (r!=0){
   cin>>M>>L>>W;
   r = Theory(4,4,4);
   if (r == 0) return;
}
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:4: error: 'cin' was not declared in this scope
    7 |    cin>>M>>L>>W;
      |    ^~~
cluedo.cpp:7:9: error: 'M' was not declared in this scope
    7 |    cin>>M>>L>>W;
      |         ^
cluedo.cpp:7:12: error: 'L' was not declared in this scope
    7 |    cin>>M>>L>>W;
      |            ^
cluedo.cpp:7:15: error: 'W' was not declared in this scope
    7 |    cin>>M>>L>>W;
      |               ^
cluedo.cpp:11:4: error: 'cin' was not declared in this scope
   11 |    cin>>M>>L>>W;
      |    ^~~
cluedo.cpp:11:9: error: 'M' was not declared in this scope
   11 |    cin>>M>>L>>W;
      |         ^
cluedo.cpp:11:12: error: 'L' was not declared in this scope
   11 |    cin>>M>>L>>W;
      |            ^
cluedo.cpp:11:15: error: 'W' was not declared in this scope
   11 |    cin>>M>>L>>W;
      |               ^
cluedo.cpp:15:4: error: 'cin' was not declared in this scope
   15 |    cin>>M>>L>>W;
      |    ^~~
cluedo.cpp:15:9: error: 'M' was not declared in this scope
   15 |    cin>>M>>L>>W;
      |         ^
cluedo.cpp:15:12: error: 'L' was not declared in this scope
   15 |    cin>>M>>L>>W;
      |            ^
cluedo.cpp:15:15: error: 'W' was not declared in this scope
   15 |    cin>>M>>L>>W;
      |               ^