Submission #1341492

#TimeUsernameProblemLanguageResultExecution timeMemory
1341492lazyGame (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

int c[100005];
void initialize(int n) {
    for (int i = 1; i <= n; i++) {
        c[i] = i;
    }
}

int hasEdge(int u, int v) {

    if (c[u + 1] == v) return 1;

    return 0;
}

]

Compilation message (stderr)

game.cpp:18:1: error: expected unqualified-id before ']' token
   18 | ]
      | ^