Submission #911502

#TimeUsernameProblemLanguageResultExecution timeMemory
911502Muhammad_AneeqCrayfish scrivener (IOI12_scrivener)C++17
Compilation error
0 ms0 KiB
#include <string> #include <algorithm> #include "grader.h" using namespace std; int const N=1e6+10; char com[N]={}; int ind[N]={}; int num=0; void Init() { com[num]=' '; ind[0]=0; } void TypeLetter(char L) { num++; com[num]=L; ind[num]=num; } void UndoCommands(int U) { ind[num+1]=ind[num-U]; com[num+1]=com[num-U]; num++; } char GetLetter(int P) { string g; int i=ind[num]; while (i!=0) { g+=com[i]; i=ind[i-1]; } reverse(begin(g),end(g)); return g[P]; }

Compilation message (stderr)

scrivener.cpp:3:10: fatal error: grader.h: No such file or directory
    3 | #include "grader.h"
      |          ^~~~~~~~~~
compilation terminated.