Submission #284110

# Submission time Handle Problem Language Result Execution time Memory
284110 2020-08-26T20:37:39 Z Pichon5 Vision Program (IOI19_vision) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "vision.h"

using namespace std;
void construct_network(int H, int W, int K) {
	vector<int>v;
	for(int i=0;i<H*W-K;i++){
        v.push_back(add_and(i,i+K));
	}
	add_or(v);
	/*add_not(c);
	Ns = {0, 1};
	int a = add_and(Ns);
	Ns = {0, a};
	int b = add_or(Ns);
	Ns = {0, 1, b};
	int c = add_xor(Ns);
	add_not(c);*/
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:8:29: error: could not convert 'i' from 'int' to 'std::vector<int>'
    8 |         v.push_back(add_and(i,i+K));
      |                             ^
      |                             |
      |                             int