제출 #199141

#제출 시각아이디문제언어결과실행 시간메모리
199141godwind앵무새 (IOI11_parrots)C++14
컴파일 에러
0 ms0 KiB
#include "encoder.h"
#include "encoderlib.h"
#include< bits/stdc++.h>

using namespace std;

int base[10];
void pre() {
	base[0] = 1;
	for (int i = 1; i < 9; ++i) {
		base[i] = base[i - 1] * 10;
	}
}
int len(int x) {
	if (x == 0) return 1;
	int l = 0;
	while (x) {
		x /= 10;
		++l;
	}
	return l;
}

void encode(int n, int M[]) {
	pre();
	for (int i = 0; i < n; ++i) {
		int x = i * base[3] + M[i];
		send(x);
	}
}
#include "decoder.h"
#include "decoderlib.h"
#include< bits/stdc++.h>


int ans[1000];

// void output(int x) {
// 	cout << x << endl;
// }

void decode(int n, int L, int X[]) {
	for (int i = 0; i < L; ++i) {
		int x = X[i] % 1000;
		X[i] /= 1000;

		int id = X[i];
		ans[id] = x;
	}
	for (int i = 0; i < n; ++i) {
		output(ans[i]);
	}
}

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

encoder.cpp:3:9: fatal error:  bits/stdc++.h: No such file or directory
 #include< bits/stdc++.h>
         ^~~~~~~~~~~~~~~~
compilation terminated.

decoder.cpp:3:9: fatal error:  bits/stdc++.h: No such file or directory
 #include< bits/stdc++.h>
         ^~~~~~~~~~~~~~~~
compilation terminated.