Submission #1011579

#TimeUsernameProblemLanguageResultExecution timeMemory
1011579SulACluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" unsigned char a[3] = {1,1,1}, x; void Solve() while (x = Theory(a[0], a[1], a[2])) a[x-1]++; }

Compilation message (stderr)

cluedo.cpp:6:5: error: expected initializer before 'while'
    6 |     while (x = Theory(a[0], a[1], a[2]))
      |     ^~~~~
cluedo.cpp:8:1: error: expected declaration before '}' token
    8 | }
      | ^