One test case not accepting

#include
#include
using namespace std;

int convert0To5(int num)
{
int i=0;
long long int ans=0;

if (num == 0)
	return 5;

else {

	while (num != 0) {
		int digit = num % 10;
		
		if (digit == 0)
		 {
			 ans+= 5*pow(10,i);
		 }

		 else
		  {
			  ans+=digit*pow(10,i);
		  }
		i++;  			
		num = num / 10;
	}
  return ans;	
}

}

int main()
{
long long int num;
cin>>num;
cout << convert0To5(num);
return 0;
}

Return type and parameter type should also be long long int

thank you, i missed on writing long long int convert0To5(long long int num)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.