제출 #342069

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

void Solve(){
   int r,M,L,W;
   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:12:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |    cin>>M>>L>>W;
      |    ^~~
      |    std::cin
In file included from cluedo.cpp:4:
/usr/include/c++/9/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;  /// Linked to standard input
      |                  ^~~
cluedo.cpp:16:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |    cin>>M>>L>>W;
      |    ^~~
      |    std::cin
In file included from cluedo.cpp:4:
/usr/include/c++/9/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;  /// Linked to standard input
      |                  ^~~
cluedo.cpp:20:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   20 |    cin>>M>>L>>W;
      |    ^~~
      |    std::cin
In file included from cluedo.cpp:4:
/usr/include/c++/9/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;  /// Linked to standard input
      |                  ^~~