Submission #1246828

#TimeUsernameProblemLanguageResultExecution timeMemory
1246828sofiefuVision Program (IOI19_vision)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; #define vo vector #define pb push_back #define fi first #define se second #define all(x) x.begin(), x.end() typedef vector<signed> vs; typedef vector<int> vi; typedef pair<int, int> pii; #define rep(i, a, b) for(int i=(a); i<(b);i++) #define repd(i, a, b) for(int i=(b-1); i>=a;i--) #define pr(x) cerr << #x << " = " << x << endl; int const inf = 1e18, mxn = 1e5+5; int n, m; void construct_network(int R, int C, int K){ // vo<vi> black(R, vi(C)); // vo<pii> dots; // pii white, dot; rep(i, 0, R){ rep(u, 0, C){ if(i+u==K){ op.pb(i*C+u); } // int ind = i*C+u; // int ret = add_or({ind}); // if(ret) {dot = {i, u}; break;} } } add_or(op); // // int dist = abs(dots[0].fi - dots[1].fi) + abs(dots[0].se-dots[1].se); // if(dist==K) dosts }

Compilation message (stderr)

vision.cpp:17:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   17 | int const inf = 1e18, mxn = 1e5+5;
      |                 ^~~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:28:17: error: 'op' was not declared in this scope
   28 |                 op.pb(i*C+u);
      |                 ^~
vision.cpp:36:12: error: 'op' was not declared in this scope
   36 |     add_or(op);
      |            ^~