foo.cc: In function 'int add(int, int)':
foo.cc:31:9: warning: 'zonghe' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | return zonghe;
| ^~~~~~
foo.cc: In function 'int main()':
foo.cc:28:16: warning: 'zonghe' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | zonghe=zonghe*n+a%n;
| ~~~~~~^~
foo.cc:25:6: note: 'zonghe' was declared here
25 | int zonghe;
| ^~~~~~
foo.cc:48:18: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
48 | cout<<"STEP="<<cnt;
| ^~~
[Hydro](https://hydro.ac)提供评测服务