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: 'mid' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return mid;
         ^~~
/in/foo.cc: In function 'int calc(int, int*)':
/in/foo.cc:20:6: warning: 'mid' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int mid;
      ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 12ms 1.883 MiB
#2 Wrong Answer 6ms 1.441 MiB
#3 Accepted 2ms 1.449 MiB
#4 Accepted 2ms 1.457 MiB
#5 Accepted 4ms 1.43 MiB
#6 Accepted 2ms 1.461 MiB
#7 Accepted 3ms 1.43 MiB
#8 Wrong Answer 25ms 3.07 MiB
#9 Accepted 4ms 1.711 MiB
#10 Accepted 21ms 3.055 MiB

信息

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