Submission #1222699

#TimeUsernameProblemLanguageResultExecution timeMemory
1222699orionarafCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
c++; } void Solve() { for (int i = 1; i <= 6; ++i) A[i] = 0; for (int i = 1; i <= 10; ++i) B[i] = 0; for (int i = 1; i <= 6; ++i) C[i] = 0; int a, b, c, ans; do { getTheory(a, b, c); ans = Theory(a, b, c); if (ans == 1) A[a] = 1; if (ans == 2) B[b] = 1; if (ans == 3) C[c] = 1; } while (ans != 0); }

Compilation message (stderr)

cluedo.cpp:1:6: error: 'c' does not name a type
    1 |      c++;
      |      ^
cluedo.cpp:2:1: error: expected declaration before '}' token
    2 | }
      | ^
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:9: error: 'A' was not declared in this scope
    7 |         A[i] = 0;
      |         ^
cluedo.cpp:9:9: error: 'B' was not declared in this scope
    9 |         B[i] = 0;
      |         ^
cluedo.cpp:11:9: error: 'C' was not declared in this scope
   11 |         C[i] = 0;
      |         ^
cluedo.cpp:15:9: error: 'getTheory' was not declared in this scope
   15 |         getTheory(a, b, c);
      |         ^~~~~~~~~
cluedo.cpp:16:15: error: 'Theory' was not declared in this scope
   16 |         ans = Theory(a, b, c);
      |               ^~~~~~
cluedo.cpp:18:13: error: 'A' was not declared in this scope
   18 |             A[a] = 1;
      |             ^
cluedo.cpp:20:13: error: 'B' was not declared in this scope
   20 |             B[b] = 1;
      |             ^
cluedo.cpp:22:13: error: 'C' was not declared in this scope
   22 |             C[c] = 1;
      |             ^