Submission #425868

# Submission time Handle Problem Language Result Execution time Memory
425868 2021-06-13T12:07:10 Z Hazem Toy Train (IOI17_train) C++14
Compilation error
0 ms 0 KB
#include "train.cpp"

#include <cstdio>
#include <vector>
#include <cassert>

using namespace std;

int main() {
	int n, m;
	assert(2 == scanf("%d %d", &n, &m));

	vector<int> a(n), r(n), u(m), v(m);

	for(int i = 0; i < n; i++)
		assert(1 == scanf("%d", &a[i]));

	for(int i = 0; i < n; i++)
		assert(1 == scanf("%d", &r[i]));

	for(int i = 0; i < m; i++)
		assert(2 == scanf("%d %d", &u[i], &v[i]));

	vector<int> res = who_wins(a, r, u, v);

	for(int i = 0; i < (int)res.size(); i++)
		printf(i ? " %d" : "%d", res[i]);
	printf("\n");

	return 0;
}

Compilation message

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