0_0_22360048_11160.cpp: In function 'int main()':
0_0_22360048_11160.cpp:11:5: error: 'cin' was not declared in this scope
cin>>t;
^
0_0_22360048_11160.cpp:20:19: error: 'sort' was not declared in this scope
sort(a,a+n);
^
0_0_22360048_11160.cpp:22:44: error: 'upper_bound' was not declared in this scope
cnt+=upper_bound(a+i,a+n,a[i]+k)-(a+i)-1;
^
|