Submission #7309

# Submission time Handle Problem Language Result Execution time Memory
7309 2014-07-30T07:07:33 Z gs13068 Game (IOI14_game) C++
Compilation error
0 ms 0 KB
#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

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]