5 / 5
Dec 2008

it's my first problem solution submitted in this site..... n itz showing compiling error.... i can't understand wat kinda error is here... :

#include<stdio.h>
#include<conio.h>
int main()
{
	int a;
	do
	{
		scanf("%d", &a);
		printf("%d\n", a);
	}while(a<=42);
	return 0;
	getch();
}

can any one help me out???

  • created

    Dec '04
  • last reply

    Dec '08
  • 4

    replies

  • 647

    views

  • 5

    users

  • 1

    link

tanjir, you can see your compile error if you click in "compilation error" in result column (you have to log in for submitting).

I think it is due to using . Get rid of this header and delete getch() too.

goodluck

1 year later

WHen i delete the conio header line and getch command, it says SIGSEV runtime error.

Can anyone help me please ?

2 years later

MAxsu please xplain.......y there is a compliation error in tanjir's code due to conio.h

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 36 28d

Want to read more? Browse other topics in C and C++ or view latest topics.