Submission #552484

#TimeUsernameProblemLanguageResultExecution timeMemory
552484SharkyGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#ifdef __cplusplus
extern "C" {
#endif
void initialize(int n);
int hasEdge(int u, int v);
#ifdef __cplusplus
}
#endif

int c[1500];

void initialize(int n) {
  // TODO: implementation
}

int hasEdge(int u, int v) {
  return ++c[u > v ? u : v] == (u > v ? u : v);
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccRaHZvF.o: in function `main':
grader.cpp:(.text.startup+0x2a): undefined reference to `initialize(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status