Submission #528859

#TimeUsernameProblemLanguageResultExecution timeMemory
528859Alex_tz307Gondola (IOI14_gondola)C++17
Compilation error
0 ms0 KiB
int valid(int n, int a[]) { int pos = 0; for (int i = 0; i < n; ++i) { if (a[i] == 1) { pos = i; break; } } for (int x = 1; x <= n; ++x) { if (a[pos] != x) { return 0; } pos += 1; if (pos == n) { pos = 0; } } return 1; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccDQWfuq.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