/ CWOI /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c==' ')break;e[1].a[++cnt]=c-'0';};
   ^~
/in/foo.cc:32:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(c==' ')break;e[1].a[++cnt]=c-'0';};
                   ^
/in/foo.cc: In function 'void g()':
/in/foo.cc:22:12: warning: array subscript is above array bounds [-Warray-bounds]
         e[3].a[ii]=e[2].a[ii]+e[1].a[ii]+ys;
         ~~~^
/in/foo.cc:23:37: warning: array subscript is above array bounds [-Warray-bounds]
         if(e[3].a[ii]>=10)e[3].a[ii]-=10,ys++;
                           ~~~~~~~~~~^~~~
/in/foo.cc:26:65: warning: array subscript is above array bounds [-Warray-bounds]
     e[3].len=max(e[1].len+(e[3].a[e[1].len+1]?1:0),e[2].len+(e[3].a[e[2].len+1]?1:0));
                                                              ~~~^
/in/foo.cc:26:31: warning: array subscript is above array bounds [-Warray-bounds]
     e[3].len=max(e[1].len+(e[3].a[e[1].len+1]?1:0),e[2].len+(e[3].a[e[2].len+1]?1:0));
                            ~~~^
/in/foo.cc:26:8: warning: array subscript is above array bounds [-Warray-bounds]
     e[3].len=max(e[1].len+(e[3].a[e[1].len+1]?1:0),e[2].len+(e[3].a[e[2].len+1]?1:0));
     ~~~^
/in/foo.cc:27:35: warning: array subscript is above array bounds [-Warray-bounds]
     resdown(i,e[3].len,1)cout<<e[3].a[i];
                                ~~~^
# 状态 耗时 内存占用
#1 Accepted 3ms 320.0 KiB
#2 Wrong Answer 3ms 356.0 KiB

信息

递交者
类型
递交
题目
A + B Problem
语言
C++
递交时间
2017-09-10 10:29:07
评测时间
2017-09-10 10:29:07
评测机
分数
50
总耗时
6ms
峰值内存
356.0 KiB