제출 #426951

#제출 시각아이디문제언어결과실행 시간메모리
426951APROHACKArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include "shoes.h"
#include "shoes.cpp"
#include <cstdio>
#include <cassert>

using namespace std;

int main() {
	int n;
	assert(1 == scanf("%d", &n));
	vector<int> S(2 * n);
	for (int i = 0; i < 2 * n; i++)
		assert(1 == scanf("%d", &S[i]));
	fclose(stdin);

	long long result = count_swaps(S);

	printf("%lld\n", result);
	fclose(stdout);
	return 0;
}

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

shoes.cpp:2:10: fatal error: shoes.cpp: No such file or directory
    2 | #include "shoes.cpp"
      |          ^~~~~~~~~~~
compilation terminated.