krov.cpp:14:9: error: 've' does not name a type; did you mean 're'?
typedef ve<int> vi;
^~
re
krov.cpp:29:5: error: 'vi' does not name a type
vi v, c, fc; ve<ll> fv; int n; ll s;
^~
krov.cpp:29:18: error: 've' does not name a type; did you mean 're'?
vi v, c, fc; ve<ll> fv; int n; ll s;
^~
re
krov.cpp: In constructor 'tree::tree()':
krov.cpp:30:13: error: class 'tree' does not have any field named 'v'
tree(): v(0), c(0), fc(0), fv(0), n(0), s(0) {};
^
krov.cpp:30:19: error: class 'tree' does not have any field named 'c'
tree(): v(0), c(0), fc(0), fv(0), n(0), s(0) {};
^
krov.cpp:30:25: error: class 'tree' does not have any field named 'fc'
tree(): v(0), c(0), fc(0), fv(0), n(0), s(0) {};
^~
krov.cpp:30:32: error: class 'tree' does not have any field named 'fv'
tree(): v(0), c(0), fc(0), fv(0), n(0), s(0) {};
^~
krov.cpp: In member function 'void tree::init()':
krov.cpp:32:9: error: 'c' was not declared in this scope
c = v;
^
krov.cpp:32:13: error: 'v' was not declared in this scope
c = v;
^
krov.cpp:34:9: error: 'fc' was not declared in this scope
fc.assign(sz(v) + 5, 0);
^~
krov.cpp:34:9: note: suggested alternative: 'fo'
fc.assign(sz(v) + 5, 0);
^~
fo
krov.cpp:35:9: error: 'fv' was not declared in this scope
fv.assign(sz(v) + 5, 0);
^~
krov.cpp:35:9: note: suggested alternative: 'fo'
fv.assign(sz(v) + 5, 0);
^~
fo
krov.cpp: In member function 'void tree::fcupd(int, int)':
krov.cpp:37:48: error: 'fc' was not declared in this scope
void fcupd(int i, int v) { for(i++; i < sz(fc); i += i & -i) fc[i] += v; }
^
krov.cpp:9:20: note: in definition of macro 'sz'
#define sz(x) int((x).size())
^
krov.cpp:37:48: note: suggested alternative: 'fo'
void fcupd(int i, int v) { for(i++; i < sz(fc); i += i & -i) fc[i] += v; }
^
krov.cpp:9:20: note: in definition of macro 'sz'
#define sz(x) int((x).size())
^
krov.cpp: In member function 'void tree::fvupd(int, int)':
krov.cpp:38:48: error: 'fv' was not declared in this scope
void fvupd(int i, int v) { for(i++; i < sz(fv); i += i & -i) fv[i] += v; }
^
krov.cpp:9:20: note: in definition of macro 'sz'
#define sz(x) int((x).size())
^
krov.cpp:38:48: note: suggested alternative: 'v'
void fvupd(int i, int v) { for(i++; i < sz(fv); i += i & -i) fv[i] += v; }
^
krov.cpp:9:20: note: in definition of macro 'sz'
#define sz(x) int((x).size())
^
krov.cpp: In member function 'int tree::fcget(int)':
krov.cpp:39:64: error: 'fc' was not declared in this scope
int fcget(int i) { int v {}; for(i++; i; i -= i & -i) v += fc[i]; re v; }
^~
krov.cpp:39:64: note: suggested alternative: 'fo'
int fcget(int i) { int v {}; for(i++; i; i -= i & -i) v += fc[i]; re v; }
^~
fo
krov.cpp: In member function 'll tree::fvget(int)':
krov.cpp:40:64: error: 'fv' was not declared in this scope
ll fvget(int i) { ll v {}; for(i++; i; i -= i & -i) v += fv[i]; re v; }
^~
krov.cpp:40:64: note: suggested alternative: 'v'
ll fvget(int i) { ll v {}; for(i++; i; i -= i & -i) v += fv[i]; re v; }
^~
v
krov.cpp: In member function 'int tree::index(int)':
krov.cpp:41:43: error: 'c' was not declared in this scope
int index(int v) { re upper_bound(bnd(c), v) - c.begin() - 1; }
^
krov.cpp:10:16: note: in definition of macro 'bnd'
#define bnd(x) x.begin(), x.end()
^
krov.cpp: In member function 'void tree::add(int)':
krov.cpp:43:23: error: 'v' was not declared in this scope
int j = index(v[i]);
^
krov.cpp: In member function 'void tree::del(int)':
krov.cpp:49:23: error: 'v' was not declared in this scope
int j = index(v[i]);
^
krov.cpp: In function 'void solve()':
krov.cpp:74:14: error: 'struct tree' has no member named 'v'
fo(n) le.v.pb(a[i] - i); le.init();
^
krov.cpp:4:18: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define fr(i, n) for(int i = 0; i < n; ++i)
^
krov.cpp:5:15: note: in expansion of macro 'fr'
#define fo(n) fr(i, n)
^~
krov.cpp:74:5: note: in expansion of macro 'fo'
fo(n) le.v.pb(a[i] - i); le.init();
^~
krov.cpp:74:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
fo(n) le.v.pb(a[i] - i); le.init();
^~
krov.cpp:75:14: error: 'struct tree' has no member named 'v'
fo(n) ri.v.pb(a[i] + i); ri.init();
^
krov.cpp:4:18: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define fr(i, n) for(int i = 0; i < n; ++i)
^
krov.cpp:5:15: note: in expansion of macro 'fr'
#define fo(n) fr(i, n)
^~
krov.cpp:75:5: note: in expansion of macro 'fo'
fo(n) ri.v.pb(a[i] + i); ri.init();
^~
krov.cpp:75:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
fo(n) ri.v.pb(a[i] + i); ri.init();
^~