/ Vijos /

记录详情

Wrong Answer

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"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 1.0000000000 ,应为 1.000 18ms 24.594 MiB
#2 Wrong Answer 读取到 -0.0113577518 ,应为 -0.011 211ms 26.051 MiB
#3 Wrong Answer 读取到 0.0102520954 ,应为 0.010 225ms 25.977 MiB
#4 Wrong Answer 读取到 -0.0001946126 ,应为 -0.000 318ms 26.004 MiB
#5 Wrong Answer 读取到 -0.0064152616 ,应为 -0.006 302ms 26.125 MiB

信息

递交者
类型
递交
题目
P2018 相关分析
语言
C++
递交时间
2020-08-05 19:24:35
评测时间
2020-08-05 19:24:35
评测机
分数
0
总耗时
1076ms
峰值内存
26.125 MiB