Submission #618115

#TimeUsernameProblemLanguageResultExecution timeMemory
618115as111Gondola (IOI14_gondola)C++14
Compilation error
0 ms0 KiB
#include <vector> #include <set> using namespace std; int valid(int n, int inputSeq[]) { int curr = inputSeq[0]; for (int i = 1; i < n; i++) { if (i != curr + 1) { if (i <= n && i != 1) { return 0; } } curr = inputSeq[i]; } return 1; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccP3vmgy.o: in function `main':
grader.cpp:(.text.startup+0xb6): undefined reference to `valid'
/usr/bin/ld: grader.cpp:(.text.startup+0x108): undefined reference to `countReplacement'
/usr/bin/ld: grader.cpp:(.text.startup+0x132): undefined reference to `replacement'
collect2: error: ld returned 1 exit status