제출 #70786

#제출 시각아이디문제언어결과실행 시간메모리
70786edisonhello크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
컴파일 에러
0 ms0 KiB
#include<ext/rope>
#define a auto

__gnu_cxx::crope r[1<<20];
int x;

a Init(){}
a TypeLetter(a c){
    ++x;
    r[x]=r[x-1];
    r[x].push_back(c);
}
a UndoCommands(a u){
    ++x;
    r[x]=r[x-u-1];
}
a GetLetter(a p){
    return r[x][p];
}

컴파일 시 표준 에러 (stderr) 메시지

/tmp/ccCQG1mc.o: In function `main':
grader.cpp:(.text.startup+0xef): undefined reference to `TypeLetter(char)'
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