Submission #883298

# Submission time Handle Problem Language Result Execution time Memory
883298 2023-12-05T05:46:54 Z klee Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#ifdef __cplusplus
extern "C" {
  #endif
  int Theory(int M, int L, int W);
  void Solve();
  #ifdef __cplusplus
}
#endif

// TODO: global variables can be declared here

void Solve() {
  int r = -1; int m = 1; int l = 1; int w = 1;
  r = Theory(m,l,w);
  while (r > 0) {
    if (r == 1) m++;
    if (r == 2) l++;
    if (r == 3) w++;
    r = Theory(m,l,w);
  }
}

Compilation message

/usr/bin/ld: /tmp/cccwDbYm.o: in function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
/usr/bin/ld: /tmp/ccrGoINo.o: in function `Solve':
cluedo.cpp:(.text+0x18): undefined reference to `Theory'
/usr/bin/ld: cluedo.cpp:(.text+0x48): undefined reference to `Theory'
/usr/bin/ld: cluedo.cpp:(.text+0x60): undefined reference to `Theory'
collect2: error: ld returned 1 exit status