Submission #1184996

#TimeUsernameProblemLanguageResultExecution timeMemory
1184996starnightsnowCrayfish scrivener (IOI12_scrivener)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; vector<char> ar; void Init() { return; } void TypeLetter(char L) { ar.push_back(L); } void UndoCommands(int U) { return; } char GetLetter(int P) { return ar[P]; } int main() { Init(); TypeLetter('a'); TypeLetter('b'); cout << GetLetter(1); TypeLetter('d'); cout << GetLetter(2); TypeLetter('e'); TypeLetter('c'); cout << GetLetter(2); cout << GetLetter(2); }

Compilation message (stderr)

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