Submission #1233800

#TimeUsernameProblemLanguageResultExecution timeMemory
1233800veehjVision Program (IOI19_vision)C++17
Compilation error
0 ms0 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; #define fi first #define se second #define pb push_back #define sz(a) (ll) a.size() #define all(x) (x).begin(), (x).end() #define rep(i, a, b) for(ll i=(ll)(a); i<(ll)(b); i++) #define rrep(i, a, b) for(ll i=(ll)(a); i>=(ll)(b); i--) #define vl vector<ll> #define vpll vector<pair<ll, ll>> #define vvl vector<vector<ll>> #define pll pair<ll, ll> void construct_network(int h, int w, int k) { ll l=h*w, r=h*w; vector<int> Ns; set<int> st; for(int rw=0; rw<=k; rw++){ int currh=0; currw=0; st.insert(currh*w+currw); st.insert((currh+(k-rw))*w+(currw+rw)); st.insert((currh+(k-rw))*w+currw); st.insert(currh*w+(currw+rw)); } Ns={}; for(auto& u : st) Ns.pb(u); add_xor(Ns); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:22:18: error: 'currw' was not declared in this scope; did you mean 'currh'?
   22 |     int currh=0; currw=0;
      |                  ^~~~~
      |                  currh