제출 #7309

#제출 시각아이디문제언어결과실행 시간메모리
7309gs13068게임 (IOI14_game)C++98
컴파일 에러
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;}

컴파일 시 표준 에러 (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]