Submission #883298

#TimeUsernameProblemLanguageResultExecution timeMemory
883298kleeCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

/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