记录详情

Compile Error

/in/foo.cc: In function 'int find_sec_max(int*, int)':
/in/foo.cc:8:19: error: 'INT_MIN' was not declared in this scope
     int sec_max = INT_MIN;
                   ^~~~~~~
/in/foo.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:9: error: storage size of 'a' isn't known
   int a[],na;
         ^
/in/foo.cc:26:8: error: storage size of 'b' isn't known
  int b[],nb;
        ^
/in/foo.cc:28:9: error: expected primary-expression before ']' token
  cin>>a[];
         ^
/in/foo.cc:29:9: error: expected primary-expression before ']' token
  cin>>b[];
         ^
/in/foo.cc:30:12: error: 'sec_max1' was not declared in this scope
      cout<<sec_max1<<endl;
            ^~~~~~~~
/in/foo.cc:31:9: error: 'sec_max2' was not declared in this scope
   cout<<sec_max2<<endl;
         ^~~~~~~~
/in/foo.cc:26:10: warning: unused variable 'nb' [-Wunused-variable]
  int b[],nb;
          ^~

信息

递交者
类型
递交
题目
A9-4 数组中第二大的数
比赛
中北数据结构课程赛事二:顺序表类的操作
语言
C++
递交时间
2019-03-10 18:37:58
评测时间
2019-03-10 18:37:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes