foo.cc: In function ‘int main()’:
foo.cc:39:13: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
39 | int max=sum[1],u;
| ^~~
foo.cc:7:13: note: ‘sum’ declared here
7 | int sum[1000],num=0,qimo[1000],pingyi[1000],c[1000];
| ^~~
foo.cc:39:13: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
39 | int max=sum[1],u;
| ^~~
foo.cc:7:13: note: ‘sum’ declared here
7 | int sum[1000],num=0,qimo[1000],pingyi[1000],c[1000];
| ^~~
foo.cc:46:21: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
46 | cout<<name[u]<<max<<num;
| ~~~~~~^
foo.cc:39:24: note: ‘u’ was declared here
39 | int max=sum[1],u;
| ^