/in/foo.cc: In function 'int FindMinCount1(int*, int)':
/in/foo.cc:7:13: warning: unused variable 'temp2' [-Wunused-variable]
int temp1, temp2;
^~~~~
/in/foo.cc: In function 'int FindMinCount2(int*, int)':
/in/foo.cc:20:13: warning: unused variable 'temp2' [-Wunused-variable]
int temp1, temp2;
^~~~~
/in/foo.cc: In function 'int FindMinCount1(int*, int)':
/in/foo.cc:8:19: warning: 'count' is used uninitialized in this function [-Wuninitialized]
for (int i = 1; i<count; i++) {
~^~~~~~
/in/foo.cc: In function 'int FindMinCount2(int*, int)':
/in/foo.cc:21:19: warning: 'count' is used uninitialized in this function [-Wuninitialized]
for (int i = 1; i<count; i++) {
~^~~~~~
/in/foo.cc:22:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (Min) {
^~
/in/foo.cc:28:9: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
return temp1;
^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (Min) {
^~
/in/foo.cc:19:6: note: 'Min' was declared here
int Min;
^~~
/in/foo.cc:9:3: warning: 'Min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (Min) {
^~
/in/foo.cc:6:6: note: 'Min' was declared here
int Min;
^~~
/in/foo.cc:51:34: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << FindMinCount1(a, n1) << " " << FindMinCount2(b, n2);
^~~
/in/foo.cc:20:6: warning: 'temp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
int temp1, temp2;
^~~~~