/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  scanf("%d%d",&c,&n);
                    ^
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:7:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  for (i=1;i<=n;i++) scanf("%d",&v[i]);
                                     ^
/in/foo.cc:10:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  printf("%d",c-f[c]);
                    ^
# 状态 耗时 内存占用
#1 Accepted 3ms 640.0 KiB
#2 Accepted 3ms 640.0 KiB
#3 Accepted 3ms 512.0 KiB
#4 Accepted 2ms 592.0 KiB
#5 Accepted 3ms 624.0 KiB

信息

递交者
类型
递交
题目
P1133 装箱问题
语言
C++
递交时间
2018-04-15 17:36:16
评测时间
2018-04-15 17:36:16
评测机
分数
50
总耗时
17ms
峰值内存
640.0 KiB