foo.cc: In function ‘int main()’:
foo.cc:5:29: warning: unused variable ‘maxn’ [-Wunused-variable]
5 | int n,ge,shi,bai,nt,maxn=-100000,minn=100000,a[3],maxnt,it;
| ^~~~
foo.cc:5:59: warning: unused variable ‘maxnt’ [-Wunused-variable]
5 | int n,ge,shi,bai,nt,maxn=-100000,minn=100000,a[3],maxnt,it;
| ^~~~~
foo.cc:29:17: warning: ‘it’ may be used uninitialized [-Wmaybe-uninitialized]
29 | if(ge==it)
| ^~
foo.cc:5:65: note: ‘it’ was declared here
5 | int n,ge,shi,bai,nt,maxn=-100000,minn=100000,a[3],maxnt,it;
| ^~