/in/foo.cc: In function 'int findmax(int*, int)':
/in/foo.cc:18:12: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
18 | return index;
| ^~~~~
/in/foo.cc:8:9: note: 'index' was declared here
8 | int index;
| ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:24: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
33 | cout << a[ans1] << " " << b[ans2];
| ^~~
/in/foo.cc:8:9: note: 'index' was declared here
8 | int index;
| ^~~~~
/in/foo.cc:33:37: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
33 | cout << a[ans1] << " " << b[ans2];
| ^
/in/foo.cc:8:9: note: 'index' was declared here
8 | int index;
| ^~~~~