记录详情

Wrong Answer

/in/foo.cc: In function 'int FindMinCount1(int*, int)':
/in/foo.cc:7:13: warning: unused variable 'temp2' [-Wunused-variable]
  int temp1, temp2;
             ^~~~~
/in/foo.cc: In function 'int FindMinCount2(int*, int)':
/in/foo.cc:20:13: warning: unused variable 'temp2' [-Wunused-variable]
  int temp1, temp2;
             ^~~~~
/in/foo.cc: In function 'int FindMinCount1(int*, int)':
/in/foo.cc:8:19: warning: 'count' is used uninitialized in this function [-Wuninitialized]
  for (int i = 1; i<count; i++) {
                  ~^~~~~~
/in/foo.cc: In function 'int FindMinCount2(int*, int)':
/in/foo.cc:21:19: warning: 'count' is used uninitialized in this function [-Wuninitialized]
  for (int i = 1; i<count; i++) {
                  ~^~~~~~
/in/foo.cc:22:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (Min) {
   ^~
/in/foo.cc:28:9: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return temp1;
         ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (Min) {
   ^~
/in/foo.cc:19:6: note: 'Min' was declared here
  int Min;
      ^~~
/in/foo.cc:9:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (Min) {
   ^~
/in/foo.cc:6:6: note: 'Min' was declared here
  int Min;
      ^~~
/in/foo.cc:51:34: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout << FindMinCount1(a, n1) << " " << FindMinCount2(b, n2);
                                  ^~~
/in/foo.cc:20:6: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int temp1, temp2;
      ^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 196.0 KiB
#2 Wrong Answer 1ms 204.0 KiB
#3 Wrong Answer 1ms 200.0 KiB
#4 Wrong Answer 1ms 204.0 KiB
#5 Wrong Answer 1ms 200.0 KiB

信息

递交者
类型
递交
题目
A9-5 数组中最小值的个数
比赛
中北数据结构课程赛事二:顺序表类的操作
语言
C++
递交时间
2019-03-10 19:39:52
评测时间
2019-03-10 19:39:52
评测机
分数
0
总耗时
7ms
峰值内存
204.0 KiB