Main.cc: In function 'int main()': Main.cc:3:16: error: 'scanf' was not declared in this scope scanf("%d", &a); ^ Main.cc:5:2: error: 'cout' was not declared in this scope cout << b; ^