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)提供评测服务