Submission #7309

#TimeUsernameProblemLanguageResultExecution timeMemory
7309gs13068Game (IOI14_game)C++98
Compilation error
0 ms0 KiB
#import"game.h" void initialize(int n){}int a[1501];int hasEdge(int u,int v){return++[u>v?u:v]==u>v?u:v;}

Compilation message (stderr)

game.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:2:72: error: expected ',' before '>' token
game.cpp:2:72: error: expected identifier before '>' token
game.cpp: In lambda function:
game.cpp:2:79: error: expected '{' before '==' token
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:2:79: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default]
game.cpp:2:79: error: no match for 'operator++' in '++{u}'
game.cpp:2:89: warning: control reaches end of non-void function [-Wreturn-type]