/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;
^~