记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:19:40: warning: unused variable 'd' [-Wunused-variable]
  int m,i,i1,i2,i3,i4,i5,least,less,a,c,d;
                                        ^
foo.cc: In function 'void SelectSmall(int*, int&, int&, int)':
foo.cc:13:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(n[i2]<y&&i2!=a)
      ~~~~~~~^~~~~~~
foo.cc: In function 'int main()':
foo.cc:13:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(n[i2]<y&&i2!=a)
      ~~~~~~~^~~~~~~
foo.cc:6:30: note: 'a' was declared here
  int x=20001;int y=20001;int a;
                              ^
foo.cc:33:19: warning: 'less' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(n[i2]==least||n[i2]==less)
       ~~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:29:14: warning: 'least' may be used uninitialized in this function [-Wmaybe-uninitialized]
   b[i1]=least+less;
         ~~~~~^~~~~

自豪的采用jd5进行评测(github.com/masnn/jd5)
# 状态 耗时 内存占用
#1 Accepted 2ms 276.0 KiB
#2 Accepted 3ms 260.0 KiB

信息

递交者
类型
自测
题目
P1124 合并果子
语言
C++
递交时间
2020-02-04 17:08:31
评测时间
2020-02-04 17:08:31
评测机
分数
20
总耗时
5ms
峰值内存
276.0 KiB