Submission #1027781

# Submission time Handle Problem Language Result Execution time Memory
1027781 2024-07-19T09:51:52 Z 0npata Sky Walking (IOI19_walk) C++17
Compilation error
0 ms 0 KB
#include "vision.h"
#include<bits/stdc++.h>

using namespace std;

#define vec vector

void construct_network(int H, int W, int K) {
	//cerr << H << ' ' << W << ' ' << K << '\n';

	auto dist = [&](int i, int j) {
		int x1 = i%W;
		int y1 = i/W;
		int x2 = j%W;
		int y2 = j/W;
		return abs(x1-x2)+abs(y1-y2);
	};

	int cnt = 0;
	for(int i = 0; i<H*W; i++) {
		for(int j = i+1; j<H*W; j++) {
			if(dist(i, j) == K) {
				add_and({i, j});
//				cerr << "HERE" << '\n';
				cnt++;
			}
		}
	}

//	cerr << "OK" << '\n';
	vec<int> or_check(cnt);
//	cerr << cnt << '\n';
	iota(or_check.begin(), or_check.end(), H*W);
	add_or(or_check);
}

Compilation message

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