0_0_39111194_7598.cpp: In function 'void solve()':
0_0_39111194_7598.cpp:41:19: error: expected ';' before 'for'
41 | scanf("%d",&n)
| ^
| ;
42 | for(int i = 1;i<=n;i++)
| ~~~
0_0_39111194_7598.cpp:42:19: error: 'i' was not declared in this scope
42 | for(int i = 1;i<=n;i++)
| ^
|