/ TYWZ /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:41: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int (*)[100010]' [-Wformat=]
         scanf("%d%d%d",&num,&weight,&val);
                                         ^
/in/foo.cc:20:28: warning: 'weig' may be used uninitialized in this function [-Wmaybe-uninitialized]
             weight[count]=j*weig;
                           ~^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 7ms 312.0 KiB
#2 Wrong Answer 34ms 396.0 KiB
#3 Wrong Answer 3ms 336.0 KiB
#4 Wrong Answer 19ms 336.0 KiB
#5 Wrong Answer 33ms 392.0 KiB
#6 Wrong Answer 9ms 344.0 KiB
#7 Wrong Answer 10ms 336.0 KiB
#8 Wrong Answer 24ms 336.0 KiB
#9 Wrong Answer 36ms 336.0 KiB
#10 Wrong Answer 11ms 336.0 KiB

信息

递交者
类型
递交
题目
Basic Knapsack II
语言
C++
递交时间
2019-02-02 11:16:06
评测时间
2019-02-02 11:16:06
评测机
分数
0
总耗时
191ms
峰值内存
396.0 KiB