Submission #252538

#TimeUsernameProblemLanguageResultExecution timeMemory
252538KubinCrayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; vector<string> history; void Init() { history.push_back(""); } void TypeLetter(char ch) { history.push_back(history.back() + ch); } void UndoCommands(size_t k) { history.push_back(history.rbegin()[k - 1]); } char GetLetter(size_t i) { return history.back()[i]; }

Compilation message (stderr)

/tmp/ccrLitPS.o: In function `main':
grader.cpp:(.text.startup+0x14b): undefined reference to `UndoCommands(int)'
grader.cpp:(.text.startup+0x177): undefined reference to `GetLetter(int)'
collect2: error: ld returned 1 exit status