이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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
| ^~~