Submission #1199105

#TimeUsernameProblemLanguageResultExecution timeMemory
1199105AMel0nCrayfish scrivener (IOI12_scrivener)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i,N) for(ll i = 0; i < N; i++) #define all(x) (x).begin(), (x).end() #define F first #define S second vector<string> pr; void Init(); void TypeLetter(char L) { if (pr.size()) pr.push_back(pr[pr.size()-1]+L); else pr.push_back(to_string(L)); } void UndoCommands(int U) { pr.push_back(pr[pr.size()-1-U]); } char GetLetter(int P) { return pr[pr.size()-1][P]; } // signed main() { // cin.tie(0); ios::sync_with_stdio(false); // }

Compilation message (stderr)

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