0_0_30766625_550.cpp: In function 'int main()':
0_0_30766625_550.cpp:15:27: error: 'scanf' was not declared in this scope
while(~scanf("%d%d",&n,&q)){
^
0_0_30766625_550.cpp:23:22: error: 'sort' was not declared in this scope
sort(t[i]+1,t[i]+n);
^
0_0_30766625_550.cpp:29:18: error: 'sort' was not declared in this scope
sort(u+1,u+n+1);
^
0_0_30766625_550.cpp:32:33: error: 'upper_bound' was not declared in this scope
ans+=upper_bound(u+1,u+n+1,w)-lower_bound(u+1,u+n+1,w);
^
0_0_30766625_550.cpp:32:58: error: 'lower_bound' was not declared in this scope
ans+=upper_bound(u+1,u+n+1,w)-lower_bound(u+1,u+n+1,w);
^
0_0_30766625_550.cpp:37:39: error: 'upper_bound' was not declared in this scope
int t1=upper_bound(t[i]+1,t[i]+n,w)-t[i]-1,
^
0_0_30766625_550.cpp:39:13: error: 't2' was not declared in this scope
ans+=t1-t2;
^
0_0_30766625_550.cpp:41:66: error: 'lower_bound' was not declared in this scope
ans+=upper_bound(t[i]+1,t[i]+n,w)-lower_bound(t[i]+1,t[i]+n,w);
^
0_0_30766625_550.cpp:43:21: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|