Main.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token scanf("%d%d",&a,&b); ^ Main.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token printf("%d",a+b); ^