제출 #306350

#제출 시각아이디문제언어결과실행 시간메모리
306350juggernaut게임 (IOI14_game)C++14
100 / 100
422 ms7032 KiB
#include"game.h" void initialize(int n){}int a[9999];int hasEdge(int x,int y){return ++a[x=x>y?x:y]==x;}

컴파일 시 표준 에러 (stderr) 메시지

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:2:74: warning: operation on 'x' may be undefined [-Wsequence-point]
    2 | void initialize(int n){}int a[9999];int hasEdge(int x,int y){return ++a[x=x>y?x:y]==x;}
      |                                                                         ~^~~~~~~~
game.cpp:2:74: warning: operation on 'x' may be undefined [-Wsequence-point]
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...