Submission #474000

#TimeUsernameProblemLanguageResultExecution timeMemory
474000ValiAntonieCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
 
void Solve(){
   int r, a = 1, b = 1, c = 1;
   while(ok != 1){
   r = Theory(a,b,c);
   while(r == 1){
    a++;
   }
   while(r == 2){
    b++;
   }
   while(r == 3){
    c++;
   }
   ok = 1;
   return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:10: error: 'ok' was not declared in this scope
    6 |    while(ok != 1){
      |          ^~
cluedo.cpp:19:1: error: expected '}' at end of input
   19 | }
      | ^
cluedo.cpp:4:13: note: to match this '{'
    4 | void Solve(){
      |             ^