Main.cc: In function ‘int main()’: Main.cc:7:6: error: expected primary-expression before ‘int’ fot(int i=0;i<=n;i++){ ^~~ Main.cc:7:14: error: ‘i’ was not declared in this scope fot(int i=0;i<=n;i++){ ^ Main.cc:6:6: warning: unused variable ‘s’ [-Wunused-variable] int s=0; ^