Submission #1124327

#TimeUsernameProblemLanguageResultExecution timeMemory
1124327codexistentGame (IOI14_game)C11
Compilation error
0 ms0 KiB
#include "game.h" void initialize(int n) { } ll ct[1500]; int hasEdge(int u, int v) { return ++ct[max(u, v)] == max(a, b); }

Compilation message (stderr)

game.c:7:1: error: unknown type name 'll'
    7 | ll ct[1500];
      | ^~
game.c: In function 'hasEdge':
game.c:9:17: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                 ^~~
game.c:9:35: error: 'a' undeclared (first use in this function)
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                                   ^
game.c:9:35: note: each undeclared identifier is reported only once for each function it appears in
game.c:9:38: error: 'b' undeclared (first use in this function)
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                                      ^