Submission #1185621

#TimeUsernameProblemLanguageResultExecution timeMemory
1185621TroySerCrayfish scrivener (IOI12_scrivener)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef int ll; vector<string> states; void Init() { return; } void TypeLetter(char L) { string currentString = states[states.size() - 1]; currentString.push_back(L); states.push_back(currentString); } void UndoCommands(int U) { ll currSZ = states.size(); states.push_back(states[currSZ - U + 1]); } char GetLetter(int P) { ll currSZ = states.size(); return states[currSZ][P]; } int main() { }

Compilation message (stderr)

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