Main.cc: In function 'int main()': Main.cc:24:22: warning: for increment expression has no effect [-Wunused-value] for(double i=1;;i<=1000;i++){ ^ Main.cc:24:28: error: expected ')' before ';' token for(double i=1;;i<=1000;i++){ ^ Main.cc:24:29: error: 'i' was not declared in this scope for(double i=1;;i<=1000;i++){ ^ Main.cc:24:32: error: expected ';' before ')' token for(double i=1;;i<=1000;i++){ ^