Submission #342074

#TimeUsernameProblemLanguageResultExecution timeMemory
342074IwanttobreakfreeCluedo (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" using namespace std; void Solve(){ int r r = Theory(1,2,3); while (r!=0){ r = Theory(1,2,3); } return; r = Theory(3,2,1); while (r!=0){ r = Theory(3,2,1); } return; r = Theory(4,4,4); while (r!=0){ r = Theory(4,4,4); } return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:12:4: error: expected initializer before 'r'
   12 |    r = Theory(1,2,3);
      |    ^
cluedo.cpp:13:11: error: 'r' was not declared in this scope
   13 |    while (r!=0){
      |           ^
cluedo.cpp:18:4: error: 'r' was not declared in this scope
   18 |    r = Theory(3,2,1);
      |    ^