0_0_36113482_17595.cpp:27:1: error: 'vector' does not name a type
vector<ll> v;
^
0_0_36113482_17595.cpp:31:5: error: 'll' does not name a type
ll sum;
^
0_0_36113482_17595.cpp:37:11: error: 'll' was not declared in this scope
int getid(ll x){ return lower_bound(v.begin(),v.end(),x)-v.begin(); }
^
0_0_36113482_17595.cpp:37:16: error: expected ',' or ';' before '{' token
int getid(ll x){ return lower_bound(v.begin(),v.end(),x)-v.begin(); }
^
0_0_36113482_17595.cpp: In function 'void push_up(int)':
0_0_36113482_17595.cpp:41:11: error: 'struct Node' has no member named 'sum'
t[id].sum=t[lson].sum+t[rson].sum;
^
0_0_36113482_17595.cpp:41:23: error: 'struct Node' has no member named 'sum'
t[id].sum=t[lson].sum+t[rson].sum;
^
0_0_36113482_17595.cpp:41:35: error: 'struct Node' has no member named 'sum'
t[id].sum=t[lson].sum+t[rson].sum;
^
0_0_36113482_17595.cpp: In function 'void build(int, int, int)':
0_0_36113482_17595.cpp:48:11: error: 'struct Node' has no member named 'sum'
t[id].sum=t[id].sz=0;
^
0_0_36113482_17595.cpp: In function 'void update(int, int)':
0_0_36113482_17595.cpp:60:20: error: 'struct Node' has no member named 'sum'
if(l==r) t[id].sum+=v[pos],t[id].sz++;
^
0_0_36113482_17595.cpp:60:25: error: 'v' was not declared in this scope
if(l==r) t[id].sum+=v[pos],t[id].sz++;
^
0_0_36113482_17595.cpp: In function 'int F(int, int, int)':
0_0_36113482_17595.cpp:80:43: error: 'min' was not declared in this scope
if(mid>=l) ans=min(F(lson,l,r),ans);
^
0_0_36113482_17595.cpp:80:43: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36113482_17595.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_36113482_17595.cpp:81:45: error: 'min' was not declared in this scope
if(r>=mid+1) ans=min(F(rson,l,r),ans);
^
0_0_36113482_17595.cpp:81:45: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36113482_17595.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_36113482_17595.cpp: At global scope:
0_0_36113482_17595.cpp:86:1: error: 'priority_queue' does not name a type
priority_queue<ll,vector<ll>,greater<ll>> q;
^
0_0_36113482_17595.cpp: In function 'int D(int, int, int)':
0_0_36113482_17595.cpp:91:15: error: 'q' was not declared in this scope
if(L==R){ q.push(v[L]),t[id].sum-=v[L],t[id].sz--; return 1; }
^
0_0_36113482_17595.cpp:91:22: error: 'v' was not declared in this scope
if(L==R){ q.push(v[L]),t[id].sum-=v[L],t[id].sz--; return 1; }
^
0_0_36113482_17595.cpp:91:34: error: 'struct Node' has no member named 'sum'
if(L==R){ q.push(v[L]),t[id].sum-=v[L],t[id].sz--; return 1; }
^
0_0_36113482_17595.cpp: At global scope:
0_0_36113482_17595.cpp:108:1: error: 'll' does not name a type
ll C(int id,int l,int r)
^
0_0_36113482_17595.cpp: In function 'int main()':
0_0_36113482_17595.cpp:124:16: error: 'sd' was not declared in this scope
while(~sd(m)){
^
0_0_36113482_17595.cpp:125:9: error: 'v' was not declared in this scope
v.pb(-1);
^
0_0_36113482_17595.cpp:127:33: error: 'sort' was not declared in this scope
sort(v.begin()+1,v.end());
^
0_0_36113482_17595.cpp:127:33: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36113482_17595.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_36113482_17595.cpp:128:41: error: 'unique' was not declared in this scope
v.erase(unique(v.begin(),v.end()),v.end());
^
0_0_36113482_17595.cpp:128:41: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36113482_17595.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: 'std::unique'
unique(_ForwardIterator __first, _ForwardIterator __last,
^
0_0_36113482_17595.cpp:130:46: error: 'getid' cannot be used as a function
for(int i=1;i<=n;i++) a[i]=getid(a[i]);
^
0_0_36113482_17595.cpp:134:24: error: 'll' was not declared in this scope
char s[5]; ll x;
^
0_0_36113482_17595.cpp:135:17: error: 'ss' was not declared in this scope
ss(s),sll(x);
^
0_0_36113482_17595.cpp:135:23: error: 'x' was not declared in this scope
ss(s),sll(x);
^
0_0_36113482_17595.cpp:135:24: error: 'sll' was not declared in this scope
ss(s),sll(x);
^
0_0_36113482_17595.cpp:137:32: error: 'getid' cannot be used as a function
int pos=getid(x);
^
0_0_36113482_17595.cpp:140:20: error: expected ';' before 'ans'
ll ans=F(1,pos,n); //query
^
0_0_36113482_17595.cpp:141:20: error: 'ans' was not declared in this scope
if(ans==1e9) ans=1e12;
^
0_0_36113482_17595.cpp:143:21: error: 'ans' was not declared in this scope
pll(ans);
^
0_0_36113482_17595.cpp:143:24: error: 'pll' was not declared in this scope
pll(ans);
^
0_0_36113482_17595.cpp:145:32: error: 'getid' cannot be used as a function
int pos=getid(x);
^
0_0_36113482_17595.cpp:148:32: error: 'getid' cannot be used as a function
int pos=getid(x);
^
0_0_36113482_17595.cpp:151:20: error: expected ';' before 'ans'
ll ans=C(1,1,pos); //query
^
0_0_36113482_17595.cpp:152:21: error: 'ans' was not declared in this scope
pll(ans);
^
0_0_36113482_17595.cpp:152:24: error: 'pll' was not declared in this scope
pll(ans);
^
0_0_36113482_17595.cpp:154:23: error: 'q' was not declared in this scope
while(q.size()){
^
0_0_36113482_17595.cpp:155:24: error: expected ';' before 'tmp'
ll tmp=q.top();
^
0_0_36113482_17595.cpp:156:35: error: 'tmp' was not declared in this scope
int pos=getid(tmp);
^
0_0_36113482_17595.cpp:156:38: error: 'getid' cannot be used as a function
int pos=getid(tmp);
^
0_0_36113482_17595.cpp:164:5: error: 'PAUSE' was not declared in this scope
PAUSE;
^
|