Main.cc: In function 'int main()': Main.cc:12:31: error: lvalue required as increment operand for(int i = 0;i <= n-1; 1++){ ^ Main.cc:17:3: error: expected ',' or ';' before 'for' for(int i = 1; i<=10000; i++) ^ Main.cc:17:18: error: 'i' was not declared in this scope for(int i = 1; i<=10000; i++) ^