Main.cc: In function 'int main()': Main.cc:6:9: error: 'i' was not declared in this scope for(i=1;i<=2;i++){ ^ Main.cc:8:9: error: expected ';' before 'cout' cout << a + b << endl; ^