Submission #108217

#TimeUsernameProblemLanguageResultExecution timeMemory
108217SecretAgent007Crayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; vector< string > last; string curr = ""; void Init(){ } void TypeLetter(char c){ last.push_back(curr); curr += c; } void UndoCommands(int n){ last.push_back(curr); curr = last[last.size()-n-1]; } char getLetter(int n){ return curr[n]; }

Compilation message (stderr)

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