Submission #644953

#TimeUsernameProblemLanguageResultExecution timeMemory
644953deviceCrayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <ext/rope> using namespace std; using namespace __gnu_cxx; void Init(); void TypeLetter(char L); void UndoCommands(int U); char GetLetter(int P); rope<char> str[1000005]; int cur; void TypeLetter(char L) { cur++; str[cur] = str[cur-1]; str[cur] += L; } void UndoCommands(int U) { cur++; str[cur] = str[cur-U-1]; } char GetLetter(int P) { return str[cur][P]; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccxl50wJ.o: in function `main':
grader.cpp:(.text.startup+0x63): undefined reference to `Init()'
collect2: error: ld returned 1 exit status