/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int tili(int*, int)':
/in/foo.cc:57:4: warning: operation on 'n' may be undefined [-Wsequence-point]
   n=n=RemoveAt(a,n,zxnum2);
   ~^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:49:38: warning: unused variable 'zuixiao' [-Wunused-variable]
  int zuixiao1,zxnum1,zuixiao2,zxnum2,zuixiao,he;
                                      ^~~~~~~
/in/foo.cc:63:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int chazhao(int*, int, int)':
/in/foo.cc:32:9: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x;
         ^
/in/foo.cc: In function 'int tili(int*, int)':
/in/foo.cc:36:2: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(k>=n || k<0)  return n;
  ^~
/in/foo.cc:22:6: note: 'x' was declared here
  int x;
      ^
# 状态 耗时 内存占用
#1 Accepted 105ms 460.0 KiB
#2 Accepted 1ms 316.0 KiB
#3 Accepted 2ms 316.0 KiB
#4 Accepted 2ms 356.0 KiB
#5 Accepted 19ms 436.0 KiB
#6 Accepted 27ms 440.0 KiB
#7 Accepted 108ms 460.0 KiB
#8 Accepted 105ms 468.0 KiB
#9 Accepted 108ms 464.0 KiB
#10 Accepted 105ms 464.0 KiB

信息

递交者
类型
递交
题目
P1097 合并果子
语言
C++
递交时间
2024-10-27 17:37:58
评测时间
2024-10-27 17:37:58
评测机
分数
100
总耗时
588ms
峰值内存
468.0 KiB