/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:55:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 printf("%d",s[len-1]);
             ~~~~~~~~^
/in/foo.cc:58:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 printf("%d",s[i]);
             ~~~~^
/in/foo.cc:59:39: 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:60:39: 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:61:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 else printf("000%d",s[i]);
                     ~~~~^
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 188.0 KiB
#3 Accepted 1ms 188.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 1ms 192.0 KiB
#6 Accepted 1ms 188.0 KiB
#7 Accepted 1ms 200.0 KiB
#8 Accepted 1ms 184.0 KiB
#9 Accepted 1ms 188.0 KiB
#10 Accepted 49ms 204.0 KiB

信息

递交者
类型
递交
题目
P1388 二叉树数
语言
C++
递交时间
2018-10-24 10:59:43
评测时间
2018-10-24 10:59:43
评测机
分数
100
总耗时
62ms
峰值内存
204.0 KiB