Submission #231767

#TimeUsernameProblemLanguageResultExecution timeMemory
231767islingrGame (IOI14_game)C11
100 / 100
415 ms10528 KiB
d[1500];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}

Compilation message (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...