ricehub.cpp: In function 'long long int sm_ara(long long int, long long int)':
ricehub.cpp:10:14: error: 'lower_bound' was not declared in this scope
10 | auto it1 = lower_bound(x+1, x+R+1, l);
| ^~~~~~~~~~~
ricehub.cpp:11:14: error: 'upper_bound' was not declared in this scope
11 | auto it2 = upper_bound(x+1, x+R+1, r); it2--;
| ^~~~~~~~~~~
ricehub.cpp: In function 'long long int cnt_ara(long long int, long long int)':
ricehub.cpp:19:14: error: 'lower_bound' was not declared in this scope
19 | auto it1 = lower_bound(x+1, x+R+1, l);
| ^~~~~~~~~~~
ricehub.cpp:20:14: error: 'upper_bound' was not declared in this scope
20 | auto it2 = upper_bound(x+1, x+R+1, r);
| ^~~~~~~~~~~
ricehub.cpp: In function 'long long int CNT(long long int)':
ricehub.cpp:45:13: error: 'min' was not declared in this scope; did you mean 'mid'?
45 | add = min(add, (B-sm)/mid);
| ^~~
| mid
ricehub.cpp: In function 'long long int besthub(long long int, long long int, long long int*, long long int)':
ricehub.cpp:64:33: error: 'max' was not declared in this scope
64 | for(int i=1; i<=R; i++) ans = max(ans, CNT(x[i]-1));
| ^~~
ricehub.cpp:65:33: error: 'max' was not declared in this scope
65 | for(int i=1; i<=R; i++) ans = max(ans, CNT(x[i]+1));
| ^~~