Submission #171979

# Submission time Handle Problem Language Result Execution time Memory
171979 2019-12-30T17:50:38 Z youssefbou62 Crayfish scrivener (IOI12_scrivener) C++14
Compilation error
0 ms 0 KB
#include  <bits/stdc++.h>

using namespace std;

#define mp make_pair
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define allarr(a) a , a + n
#define ll long long
#define ull unsigned long long 
#define pb push_back
#define fastio ios_base::sync_with_stdio(false) ; cin.tie(NULL); cout.tie(NULL)
typedef pair<int, int> pi;
typedef pair<ll,ll> pll; 
typedef pair<int,pi> trp ;
typedef vector<pi> vpi;
typedef vector<pll> vpll ;
// int ab  (int  x ) { return (x>0?x:-x); }
//
string s = "" ; 

void init(){

}

void UndoCommands(int U)
{
	while( U && !s.empty() ){
		s.pop_back(); 
		U--; 
	}
}
void Typeletter(char L){
	s.pb(L); 
}

char GetLetter(int P)
{
	return s[P] ; 
}

Compilation message

/tmp/cctszGVa.o: In function `main':
grader.cpp:(.text.startup+0x5d): undefined reference to `Init()'
grader.cpp:(.text.startup+0xef): undefined reference to `TypeLetter(char)'
collect2: error: ld returned 1 exit status