foo.cc: In function 'int main()':
foo.cc:6:5: error: expected ';' before 'for'
6 | n=3
| ^
| ;
7 | for(k=1;k<=num;k++)
| ~~~
foo.cc:7:11: warning: statement has no effect [-Wunused-value]
7 | for(k=1;k<=num;k++)
| ~^~~~~
foo.cc:7:20: error: expected ';' before ')' token
7 | for(k=1;k<=num;k++)
| ^
| ;
foo.cc:5:6: warning: unused variable 'i' [-Wunused-variable]
5 | int i,j,n,m,k,num;
| ^
foo.cc:5:8: warning: unused variable 'j' [-Wunused-variable]
5 | int i,j,n,m,k,num;
| ^
foo.cc:5:12: warning: unused variable 'm' [-Wunused-variable]
5 | int i,j,n,m,k,num;
| ^
[Hydro](https://hydro.ac)提供评测服务