m new to programming world and knows only basics of c++ in turbo. is gcc and mingw same as the turbo?
here is my code written for turbo c
include
include
void main()
{
int a=2,b=4;
clrscr();
cout<<"input:"<<endl<<a<<endl<<b<<endl;
cout<<"output:"<<endl<<a+b;
getch();
}
it's display in console will be
input:
2
4
output:
6
now what should i do to fix this compilation problem occuring in spoj?