Submission #1036266

#TimeUsernameProblemLanguageResultExecution timeMemory
1036266stdfloatCrayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.cpp" using namespace std; const int N = (int)1e6 + 1; int q, cnt, cur; vector<char> ch(N); vector<int> num(N), pr(N), d(N); void Init() {} void TypeLetter(char L) { num[++q] = ++cnt; ch[cnt] = L; pr[cnt] = cur; d[cnt] = d[cur] + 1; cur = cnt; } void UndoCommands(int U) { q++; num[q] = cur = num[q - U - 1]; } char GetLetter(int P) { P = d[cur] - P - 1; int x = cur; while (P--) x = pr[x]; return ch[x]; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccs6TwnI.o: in function `main':
scrivener.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cciIsOzL.o:grader.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status