Why I am getting run time error even this is run in Geeksofgeeks IDE . problem link is https://www.codechef.com/problems/HS08TEST

#include<stdio.h>
void main()
{
int a;
float totalmoney;

scanf("%d %f",&a,&totalmoney);

if(a<=2000 && totalmoney<=2000)
{
if(a%5==0)
{
if((a + .50)<=totalmoney)

{

totalmoney=totalmoney-(a+.50);
}
printf("%.2f",totalmoney);
}
else
printf("%.2f",totalmoney);
}
}