Submission #342068

# Submission time Handle Problem Language Result Execution time Memory
342068 2021-01-01T09:47:12 Z Iwanttobreakfree Cluedo (IOI10_cluedo) C++
Compilation error
0 ms 0 KB
#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;
}
}

Compilation message

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;
      |               ^