Submission #308964

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
3089642020-10-02 12:47:00vipghn2003Crayfish scrivener (IOI12_scrivener)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
const int N=1e6+5;
int n,curNode,nT,p[N][20],cnt,pos[N],dep[N];
char c[N];
void init()
{
curNode=0;
cnt=0;;
memset(p,-1,sizeof p);
pos[0]=0;
}
void TypeLetter(char L)
{
cnt++;
nT++;
p[nT][0]=curNode;
dep[nT]=dep[curNode]+1;
c[nT]=L;
curNode=nT;
pos[cnt]=curNode;
for(int i=1;i<=18;i++) p[nT][i]=p[p[nT][i-1]][i-1];
}
void UndoCommands(int U)
{
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

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