examination.cpp:1: warning: ignoring '#pragma gcc diagnostic' [-Wunknown-pragmas]
1 | #pragma gcc diagnostic "-std=c++1z"
|
examination.cpp: In function 'long long int query(long long int, long long int, long long int, long long int, long long int, long long int)':
examination.cpp:37:46: error: too few arguments to function 'long long int query(long long int, long long int, long long int, long long int, long long int, long long int)'
37 | return max(query(v*2,tl,mid,l,min(r,mid)),query(v*2+1,mid+1,tr,max(l,mid+1),r));
| ^
examination.cpp:33:5: note: declared here
33 | int query(int v, int tl, int tr, int l, int r, int val) {
| ^~~~~
examination.cpp:37:83: error: too few arguments to function 'long long int query(long long int, long long int, long long int, long long int, long long int, long long int)'
37 | return max(query(v*2,tl,mid,l,min(r,mid)),query(v*2+1,mid+1,tr,max(l,mid+1),r));
| ^
examination.cpp:33:5: note: declared here
33 | int query(int v, int tl, int tr, int l, int r, int val) {
| ^~~~~
examination.cpp: At global scope:
examination.cpp:77:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
77 | main () {
| ^~~~