Submission #206766

#TimeUsernameProblemLanguageResultExecution timeMemory
206766joylintpVision 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) { vector<int> v; for (int i = 0; i < h; i++) for (int j = 0; j < w; j++) for (int a = i; a < h; a++) for (int b = 0; b < w; b++) if (abs(a - i) + abs(b - j) == k) v.push_back(add_and({i * w + j, a * w + b})); add_or(v); } // * * ***** * * * * // * * * ** * * * // ***** ***** * * * * * // * * * * ** * * // * * ***** * * *** // ***** ***** * * * ***** * * ***** ***** // * * * * * * * ** * * * * // * * * ***** * * * * * * ***** // * * * * * * * * ** * * // **** ***** * ***** ***** * * * *

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:12:37: error: 'add_and' was not declared in this scope
                         v.push_back(add_and({i * w + j, a * w + b}));
                                     ^~~~~~~
vision.cpp:13:5: error: 'add_or' was not declared in this scope
     add_or(v);
     ^~~~~~
vision.cpp:13:5: note: suggested alternative: 'rand_r'
     add_or(v);
     ^~~~~~
     rand_r