답안 #108216

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
108216 2019-04-28T08:28:41 Z SecretAgent007 크레이피쉬 글쓰는 기계 (IOI12_scrivener) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

#define int long long 

vector< string > last;

string curr = "";

void Init(){
	
}

void TypeLetter(char c){
	last.push_back(curr);
	curr += c;
}

void UndoCommands(int n){
	last.push_back(curr);
	curr = last[last.size()-n-1];
}

char getLetter(int n){
	return curr[n];
}

Compilation message

/tmp/ccOKPFsr.o: In function `main':
grader.cpp:(.text.startup+0x14b): undefined reference to `UndoCommands(int)'
grader.cpp:(.text.startup+0x177): undefined reference to `GetLetter(int)'
collect2: error: ld returned 1 exit status