Submission #170142

#TimeUsernameProblemLanguageResultExecution timeMemory
170142buttercrabGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
int c[2000];int hasEdge(int u,int v){return++c[u=u<v?u:v]==u;}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:1:49: warning: operation on 'u' may be undefined [-Wsequence-point]
 int c[2000];int hasEdge(int u,int v){return++c[u=u<v?u:v]==u;}
                                                ~^~~~~~~~
/tmp/ccKPALQj.o: In function `main':
grader.cpp:(.text.startup+0x14): undefined reference to `initialize(int)'
collect2: error: ld returned 1 exit status