Submission #1105902

#TimeUsernameProblemLanguageResultExecution timeMemory
1105902MateiKing80Crayfish scrivener (IOI12_scrivener)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include <ext/rope>

using namespace std;

vector<__gnu_cxx::crope> v(1);
int nrtot = 0;

void Init();
void TypeLetter(char L)
{
    nrtot ++;
    v.push_back(v[nrtot - 1] + L);
}
void UndoCommands(int U)
{
    nrtot ++;
    v.push_back(v[nrtot - U - 1]);
}
char GetLetter(int P)
{
    return v[nrtot][P];
}

Compilation message (stderr)

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