Submission #377134

# Submission time Handle Problem Language Result Execution time Memory
377134 2021-03-13T03:35:55 Z kevinxiehk Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#ifdef __cplusplus
extern "C" {
#endif
int Theory(int M, int L, int W);
void Solve();
#ifdef __cplusplus
}
#endif

int a[4],t;

void Solve() {
  // TODO: implementation
  a[1]=1,a[2]=1,a[3]=1;
  t=Theory(a[1],a[2],a[3]);
  while(t!=0){
      a[t]++;
      t=Theory(a[1],a[2],a[3]);
  }
  return;
}

Compilation message

/tmp/cckD04fH.o: In function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
/tmp/ccGySxTY.o: In function `Solve':
cluedo.cpp:(.text+0x2c): undefined reference to `Theory'
cluedo.cpp:(.text+0x61): undefined reference to `Theory'
collect2: error: ld returned 1 exit status