Main.cc:1:10: error: #include expects "FILENAME" or #include ^ Main.cc: In function 'void fun()': Main.cc:10:19: error: 'printf' was not declared in this scope printf("%d\n",a); ^ Main.cc: At global scope: Main.cc:21:11: error: '::main' must return 'int' void main() { ^