제출 #231723

#제출 시각아이디문제언어결과실행 시간메모리
231723triple_fault게임 (IOI14_game)C11
100 / 100
549 ms16520 KiB
d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}

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

game.c:1:1: warning: data definition has no type or storage class
 d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
 ^
game.c:1:1: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
game.c:1:9: warning: return type defaults to 'int' [-Wimplicit-int]
 d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
         ^~~~~~~~~~
game.c: In function 'initialize':
game.c:1:9: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
game.c: At top level:
game.c:1:24: warning: return type defaults to 'int' [-Wimplicit-int]
 d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
                        ^~~~~~~
game.c: In function 'hasEdge':
game.c:1:24: warning: type of 'u' defaults to 'int' [-Wimplicit-int]
game.c:1:24: warning: type of 'v' defaults to 'int' [-Wimplicit-int]
game.c:1:48: warning: operation on 'u' may be undefined [-Wsequence-point]
 d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
                                               ~^~~~~~~~
game.c: In function 'initialize':
game.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]
 d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...