/ 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 472.0 KiB

信息

递交者
类型
自测
题目
P1133 装箱问题
语言
C++
递交时间
2018-04-15 17:29:26
评测时间
2018-04-15 17:29:26
评测机
分数
10
总耗时
3ms
峰值内存
472.0 KiB