记录详情

Compile Error

foo.cc:6:2: error: stray '#' in program
    6 | }#include <bits/stdc++.h>
      |  ^
foo.cc:6:3: error: 'include' does not name a type
    6 | }#include <bits/stdc++.h>
      |   ^~~~~~~
foo.cc: In function 'int findisecondmax(int, int*)':
foo.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout<<max2<<" ";
      |         ^~~~
foo.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
foo.cc: At global scope:
foo.cc:26:5: error: redefinition of 'int main()'
   26 | int main()
      |     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:29:9: error: 'cin' was not declared in this scope
   29 |         cin>>n1>>n2;
      |         ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A9-4 数组中第二大的数
语言
C++
递交时间
2023-12-07 14:58:42
评测时间
2023-12-07 14:58:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes