/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:54:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  printf("%d",s[len-1]);
                      ^
/in/foo.cc:57:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   printf("%d",s[i]);
                   ^
/in/foo.cc:58:41: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   else if(s[i] >= 100) printf("0%d",s[i]);
                                         ^
/in/foo.cc:59:41: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   else if(s[i] >= 10) printf("00%d",s[i]);
                                         ^
/in/foo.cc:60:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   else printf("000%d",s[i]);
                           ^
/in/foo.cc: In function 'int Multiply(int, int)':
/in/foo.cc:12:22: warning: array subscript is above array bounds [-Warray-bounds]
   s[i + 1] += s[i] / 10000;
                      ^~~~~
/in/foo.cc:12:12: warning: array subscript is above array bounds [-Warray-bounds]
   s[i + 1] += s[i] / 10000;
   ~~~~~~~~~^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 344.0 KiB
#2 Wrong Answer 3ms 368.0 KiB
#3 Wrong Answer 2ms 352.0 KiB
#4 Wrong Answer 2ms 352.0 KiB
#5 Wrong Answer 2ms 344.0 KiB
#6 Wrong Answer 3ms 352.0 KiB
#7 Wrong Answer 3ms 380.0 KiB
#8 Wrong Answer 3ms 384.0 KiB
#9 Wrong Answer 3ms 380.0 KiB
#10 Wrong Answer 2ms 372.0 KiB

信息

递交者
类型
递交
题目
P1388 二叉树数
语言
C++
递交时间
2018-02-06 15:47:45
评测时间
2018-02-06 15:47:45
评测机
分数
0
总耗时
29ms
峰值内存
384.0 KiB