foo.cc: In function ‘int Max(int*, int)’:
foo.cc:19:16: warning: ‘imax’ may be used uninitialized [-Wmaybe-uninitialized]
19 | return imax;
| ^~~~
foo.cc:5:18: note: ‘imax’ was declared here
5 | int max, imax;
| ^~~~
foo.cc: In function ‘int Second_Max(int*, int)’:
foo.cc:39:45: warning: ‘Second_Max’ may be used uninitialized [-Wmaybe-uninitialized]
39 | if (input[i] != input[imax] && input[i] > Second_Max)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:23:13: note: ‘Second_Max’ was declared here
23 | int Second_Max, sum = 0;
| ^~~~~~~~~~
foo.cc:45:16: warning: ‘iSecond_Max’ may be used uninitialized [-Wmaybe-uninitialized]
45 | return iSecond_Max;
| ^~~~~~~~~~~
foo.cc:24:13: note: ‘iSecond_Max’ was declared here
24 | int iSecond_Max;
| ^~~~~~~~~~~