foo.cc: In function 'void build(long long int, long long int, long long int)':
foo.cc:17:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'void pushdown(long long int, long long int, long long int)':
foo.cc:24:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'void updata(long long int, long long int, long long int, long long int, long long int, long long int)':
foo.cc:40:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'long long int query(long long int, long long int, long long int, long long int, long long int)':
foo.cc:49:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1, res = 0;
~~^~~
foo.cc: In function 'int main()':
foo.cc:57:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &n, &q);
~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:58:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%lld", a + i);
~~~~~^~~~~~~~~~~~~~~
foo.cc:62:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &opt);
~~~~~^~~~~~~~~~~~~~
foo.cc:65:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld", &l, &r, &x);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:69:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &l, &r);
~~~~~^~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。