Submission #342069

#TimeUsernameProblemLanguageResultExecution timeMemory
342069IwanttobreakfreeCluedo (IOI10_cluedo)C++98
Compilation error
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; } }

Compilation message (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
      |                  ^~~