foo.cc: In function 'void Build(long long int, long long int, long long int)':
foo.cc:16:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'void pushcol(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 'long long int Query(long long int, long long int, long long int, long long int, long long int)':
foo.cc:38:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1, res = 0;
~~^~~
foo.cc: In function 'void Modify(long long int, long long int, long long int, long long int, long long int, long long int)':
foo.cc:52:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'void Build(long long int, long long int, long long int)':
foo.cc:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &sum[u]);
~~~~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:59:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:64:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld %lld", &opt, &l, &r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:68:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &x);
~~~~~^~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。