Submission #1207714

#TimeUsernameProblemLanguageResultExecution timeMemory
1207714simplemind_31Game (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; int N,clave[1500]; void initialize(int n){N=n;} int hasEdge(int u, int v){return ++clave[max(u,v)]==max(u,v)}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:6:61: error: expected ';' before '}' token
    6 | int hasEdge(int u, int v){return ++clave[max(u,v)]==max(u,v)}
      |                                                             ^
      |                                                             ;