0_0_37029407_28643.cpp: In function 'void push_up(int)':
0_0_37029407_28643.cpp:18:19: error: 'sort' was not declared in this scope
sort(a+l1,a+r1);
^
0_0_37029407_28643.cpp:35:29: error: 'abs' was not declared in this scope
if(abs(a[i]-a[s])<=k&&i!=s)ant++;
^
0_0_37029407_28643.cpp: In function 'int main()':
0_0_37029407_28643.cpp:2:13: error: 'ios' has not been declared
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
IOS;
^
0_0_37029407_28643.cpp:2:41: error: 'cin' was not declared in this scope
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
IOS;
^
0_0_37029407_28643.cpp:2:52: error: 'cout' was not declared in this scope
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
^
0_0_37029407_28643.cpp:66:5: note: in expansion of macro 'IOS'
IOS;
^
0_0_37029407_28643.cpp:73:28: error: 'endl' was not declared in this scope
if(l==r)cout<<'0'<<endl;
^
0_0_37029407_28643.cpp:74:34: error: 'endl' was not declared in this scope
else cout<<query(1,l,r)<<endl;
^
|