runtime error in C

Can somebody tell me why i am getting runtime error for this C program ?

#include<stdio.h>
#include<conio.h>
main()
{
      float x;
      int y;
      scanf("%d%f",&y,&x);
      if(y%5==0&&(x>(y+0.5)))
      printf("%0.2f",x-y-0.5);
      else
      printf("%0.2f", x);
      getch();
}

1)remove the conio.h header as it is not supported by code chef

2)make it int main()

3)remove the getch()

4)add a “return 0;” at the end

  1. Please read FAQ as it will help you to quickly solve such errors.

thanx kunal

thanx kcahdog

//