Submission #991460

#TimeUsernameProblemLanguageResultExecution timeMemory
991460sleepntsheepSeptember (APIO24_september)C++17
Compilation error
0 ms0 KiB
int what = 2; if (N >= 2001) what = 1; for (i = 0; i < what; ++i) { for (j = 0; j < N - 1; ++j) { int u = S[i][j]; Put(u, ta.query(tin[u], tout[u])); } }

Compilation message (stderr)

september.cpp:2:5: error: expected unqualified-id before 'if'
    2 |     if (N >= 2001)
      |     ^~
september.cpp:4:5: error: expected unqualified-id before 'for'
    4 |     for (i = 0; i < what; ++i) {
      |     ^~~
september.cpp:4:17: error: 'i' does not name a type
    4 |     for (i = 0; i < what; ++i) {
      |                 ^
september.cpp:4:27: error: expected unqualified-id before '++' token
    4 |     for (i = 0; i < what; ++i) {
      |                           ^~