Submission #377135

#TimeUsernameProblemLanguageResultExecution timeMemory
377135kevinxiehkCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" void Solve() { // TODO: implementation a[1]=1,a[2]=1,a[3]=1; t=Theory(a[1],a[2],a[3]); while(t!=0){ a[t]++; t=Theory(a[1],a[2],a[3]); } return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:3: error: 'a' was not declared in this scope
    5 |   a[1]=1,a[2]=1,a[3]=1;
      |   ^
cluedo.cpp:6:3: error: 't' was not declared in this scope
    6 |   t=Theory(a[1],a[2],a[3]);
      |   ^