Submission #1050503

#TimeUsernameProblemLanguageResultExecution timeMemory
1050503KasymKCrayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; #define ff first #define ss second #define all(v) v.begin(), v.end() #define ll long long #define pb push_back #define pii pair<int, int> #define wr puts("----------------") template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;} template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;} vector<string> v; void init(){ v.pb(""); } void TypeLetter(char c){ string s = v.back(); s += c; v.pb(s); } void UndoCommands(int u){ int sz = (int)v.size(); sz--; string s = v[sz-u]; v.pb(s); } char GetLetter(int p){ string s = v.back(); return s[p]; }

Compilation message (stderr)

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