Submission #114948

# Submission time Handle Problem Language Result Execution time Memory
114948 2019-06-04T06:13:00 Z zoooma13 Crayfish scrivener (IOI12_scrivener) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

#include "grader.cpp"

string curr_text;

void Init(){
    curr_text = "";
}

void TypeLetter(char L){
    curr_text += L;
}

void UndoCommands(int U){
    while(U--)
        curr_text.pop_back();
}

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

Compilation message

/tmp/cc0BXIoz.o: In function `main':
scrivener.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccuv5gdc.o:grader.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status