Submission #717741

#TimeUsernameProblemLanguageResultExecution timeMemory
717741nikosCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"

void Solve(){
    int r;
    int i = 1, j = 1, l = 1;
    while(true){
        r = Theory(i, j, l)
        if(r == 0) return;
        if(r == 1) i++;
        if(r == 2) j++;
        if(r == 3) l++;
    }
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:28: error: expected ';' before 'if'
    8 |         r = Theory(i, j, l)
      |                            ^
      |                            ;
    9 |         if(r == 0) return;
      |         ~~