/in/foo.cc: In function 'int findmin(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:21: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
33 | cout << ans1 << " " << ans2;
| ^~~
/in/foo.cc:8:9: note: 'index' was declared here
8 | int index;
| ^~~~~
/in/foo.cc:33:28: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
33 | cout << ans1 << " " << ans2;
| ^~~~
/in/foo.cc:8:9: note: 'index' was declared here
8 | int index;
| ^~~~~