Main.cc:3:9: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
intmain(){
^
Main.cc: In function 'int intmain()':
Main.cc:5:5: error: expected initializer before 'cin'
cin>>a;
^
Main.cc:7:5: error: 'c' was not declared in this scope
c=a/2;
^