제출 #64971

#제출 시각아이디문제언어결과실행 시간메모리
64971mhnd크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++14
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
const int N = 1e6+50;
const ll oo = 1e18;
const ll mod = 1e9+7;

struct node{
	char c;
	int p[30],sz;
	node(){
		memset(p,-1,sizeof(p));	
		sz=0;
	}
};
node t[N];
int cur = 0;

void Init() {}

void TypeLetter(char L) {
	t[cur].c = L;
	t[cur].p[0] = cur-1;
	if(cur)t[cur].sz = t[cur-1].sz + 1;
	for(int i=1;i<30;i++)t[cur].p[i] = t[t[cur].p[i-1]].p[i-1];
	cur++;
}

void UndoCommands(int U) {
	t[cur] = t[cur-U-1];
	cur++;
}

char GetLetter(int P) {
	int u = t[cur-1].sz - P;
	int at = cur-1;
	for(int k = 29;k>=0;k--)
		if((u>>k)&1)
			at = t[at].p[k];
	return t[at].c;
}

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

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