제출 #483235

#제출 시각아이디문제언어결과실행 시간메모리
483235syl123456Crayfish scrivener (IOI12_scrivener)C++17
컴파일 에러
0 ms0 KiB
#include "grader.h" vector<char> c; vector<int> dep, ptr; vector<vector<int>> pa, ch; void Init() { c.push_back('.'); dep.push_back(0); ptr.push_back(0); pa.emplace_back(20, 0); ch.emplace_back(26, -1); } void TypeLetter(char L) { int y = L - 'a', x = ptr.back(); if (ch[x][y] == -1) { int i = ch[x][y] = c.size(); c.push_back(L); dep.push_back(dep[x] + 1); pa.emplace_back(20); ch.emplace_back(26, -1); pa[i][0] = x; for (int j = 1; j < 20; ++j) pa[i][j] = pa[pa[i][j - 1]][j - 1]; } ptr.push_back(ch[t][x]); } void UndoCommands(int U) { int i = ptr.size() - 1 - U; ptr.push_back(ptr[i]); } char GetLetter(int P) { ++P; int i = ptr.back(); for (int j = 19; ~j; --j) if (dep[pa[i][j]] >= P) i = pa[i][j]; return c[i]; }

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

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