Submission #1189604

#TimeUsernameProblemLanguageResultExecution timeMemory
1189604tapilyocaCrayfish scrivener (IOI12_scrivener)C++20
Compilation error
0 ms0 KiB
/***********************************************
* auth: tapilyoca                              *
* date: 04/21/2025 at 22:02:54                 *
* dots: https://github.com/tapilyoca/dotilyoca * 
***********************************************/

#include <bits/stdc++.h>
#include<ext/rope>
using namespace __gnu_cxx;
using namespace std;
const long long MOD = 1e9+7;

template<typename T>
using vec = vector<T>;
using ll = long long;
using vll = vec<ll>;
using vvll = vec<vll>;
using pll = pair<ll,ll>;
using str = string;
#define pb push_back
#define dbg(x) cerr << #x << ": " << x << endl;

/***********************************************/

int i;
vector<crope> ropes(1e6+10);

void Init() {
    i = 0;
}

void TypeLetter(char L) {
    i++;
    ropes[i] = ropes[i-1];
    ropes[i].push_back(L);
}

void UndoCommands(int U) {
    i++;
    ropes[i] = ropes[i-U-1];
}

char getLetter(int P) {
    return ropes[i][P];
}

Compilation message (stderr)

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