Main.cc: In function ‘int main()’: Main.cc:6:5: error: ‘cout’ was not declared in this scope cout<<" "<& __os) ^~~~ Main.cc:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a,&b,&c); ~~~~~^~~~~~~~~~~~~~~~~~~