0_0_37120780_10237.cpp: In function 'int main()': 0_0_37120780_10237.cpp:45:9: error: expected ';' before 'for' for(int i=1;i<=n;i++){ ^ 0_0_37120780_10237.cpp:45:21: error: 'i' was not declared in this scope for(int i=1;i<=n;i++){ ^