0_0_39552454_8023.cpp: In function 'void solve()': 0_0_39552454_8023.cpp:55:21: error: 'i' was not declared in this scope 55 | for(i=1;i<=n;++i) | ^