Submission #612715

#TimeUsernameProblemLanguageResultExecution timeMemory
612715moreteVision Program (IOI19_vision)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { int ct = 0; for(int i = 0; i + K < max(W, H); i++){ add_and({i, i + K}); ct++; } vector<int> v; for(int i = H*W; i < H*W + ct; i++) v.push_back(i); add_or(v); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:7:4: error: 'add_and' was not declared in this scope
    7 |    add_and({i, i + K});
      |    ^~~~~~~
vision.cpp:12:2: error: 'add_or' was not declared in this scope
   12 |  add_or(v);
      |  ^~~~~~