foo.cc: In member function 'void SegmentTree::Build(int, int, int)':
foo.cc:17:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int j=i<<1,mid=l+r>>1;
~^~
foo.cc: In member function 'void SegmentTree::Add(int, int, int, double, double)':
foo.cc:29:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int j=i<<1,mid=s[i].l+s[i].r>>1;
~~~~~~^~~~~~~
foo.cc: In member function 'void SegmentTree::Change(int, int, int, double, double)':
foo.cc:47:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int j=i<<1,mid=s[i].l+s[i].r>>1;
~~~~~~^~~~~~~
foo.cc: In constructor 'SegmentTree::node::node(int, int)':
foo.cc:72:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
l=_l,r=_r,c=S=T=0;
~^~~~
foo.cc: In member function 'void SegmentTree::PushDown(int)':
foo.cc:105:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
s[i].c=s[i].S=s[i].T=0;
~~~~~~^~~~~~~~~
foo.cc: In member function 'void SegmentTree::Sum(int, int, int)':
foo.cc:117:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int j=i<<1,mid=s[i].l+s[i].r>>1;
~~~~~~^~~~~~~
foo.cc: In function 'int main(int, char**)':
foo.cc:128:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
foo.cc:130:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&x[i]);
~~~~~^~~~~~~~~~~~~
foo.cc:132:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&y[i]);
~~~~~^~~~~~~~~~~~~
foo.cc:137:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&opt,&l,&r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:144:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf",&S,&T);
~~~~~^~~~~~~~~~~~~~~~~
foo.cc:148:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf",&S,&T);
~~~~~^~~~~~~~~~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-08-05T11:24:35.835Z","handle":"2020-08-05T11:24:35.835Z","cache_start":"2020-08-05T11:24:35.846Z","read_cases":"2020-08-05T11:24:38.931Z","judge":"2020-08-05T11:24:38.932Z","done":"2020-08-05T11:24:42.589Z"}