Submission #284110

#TimeUsernameProblemLanguageResultExecution timeMemory
284110Pichon5Vision Program (IOI19_vision)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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