/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d",&c[i],&w[i]);
                           ^
/in/foo.cc:13:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=n;i++)
  ^~~
/in/foo.cc:22:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   printf("%d\n",f[n][V]);
   ^~~~~~
/in/foo.cc:22:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d\n",f[n][V]);
                        ^
# 状态 耗时 内存占用
#1 Accepted 3ms 344.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 4ms 4.375 MiB
#5 Accepted 4ms 4.75 MiB
#6 Accepted 3ms 4.75 MiB
#7 Accepted 2ms 4.449 MiB
#8 Accepted 4ms 4.375 MiB
#9 Accepted 3ms 4.34 MiB
#10 Accepted 4ms 4.84 MiB

信息

递交者
类型
递交
题目
P1104 采药
语言
C++
递交时间
2017-08-06 17:44:32
评测时间
2017-08-06 17:44:32
评测机
分数
100
总耗时
36ms
峰值内存
4.84 MiB