foo.cc: In function ‘int main()’:
foo.cc:7:2: warning: ‘nt’ is used uninitialized [-Wuninitialized]
7 | n=nt;
| ~^~~
foo.cc:5:15: note: ‘nt’ was declared here
5 | int n,m,j1,j2,nt,nt1;
| ^~
foo.cc:8:2: warning: ‘nt1’ is used uninitialized [-Wuninitialized]
8 | n=nt1;
| ~^~~~
foo.cc:5:18: note: ‘nt1’ was declared here
5 | int n,m,j1,j2,nt,nt1;
| ^~~
foo.cc:9:9: warning: ‘j1’ is used uninitialized [-Wuninitialized]
9 | while(j1!=0)
| ~~^~~
foo.cc:5:9: note: ‘j1’ was declared here
5 | int n,m,j1,j2,nt,nt1;
| ^~
foo.cc:14:9: warning: ‘j2’ is used uninitialized [-Wuninitialized]
14 | while(j2!=0)
| ~~^~~
foo.cc:5:12: note: ‘j2’ was declared here
5 | int n,m,j1,j2,nt,nt1;
| ^~