Wrong Answer

/in/foo.cc: In function 'int calc(int, int*)':
/in/foo.cc:36:11: warning: operation on 'k' may be undefined [-Wsequence-point]
   else f[k=find(1,len,c[i])]=min(f[k],c[i]);
          ~^~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int find(int, int, int)':
/in/foo.cc:27:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return ans;
         ^~~
/in/foo.cc: In function 'int calc(int, int*)':
/in/foo.cc:20:10: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int mid,ans;
          ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 10ms 1.887 MiB
#2 Wrong Answer 4ms 1.453 MiB
#3 Accepted 4ms 1.426 MiB
#4 Accepted 4ms 1.434 MiB
#5 Accepted 2ms 1.461 MiB
#6 Accepted 5ms 1.457 MiB
#7 Accepted 2ms 1.449 MiB
#8 Wrong Answer 22ms 3.07 MiB
#9 Accepted 4ms 1.625 MiB
#10 Wrong Answer 21ms 3.023 MiB

信息

递交者
类型
递交
题目
P1002 难解的问题
语言
C++
递交时间
2019-05-04 10:41:08
评测时间
2019-05-04 10:41:08
评测机
分数
60
总耗时
83ms
峰值内存
3.07 MiB