FCTRL problem

#include
#include
using namespace std;
int main()
{
unsigned long long int k,u,p,s;
unsigned long long int l;
cin >> k;

 for(int i=0;i<k;i++)
 {
   l=5;
   s=0;
   cin >> u;
   while(u>l)
 {
    p=u/l;
    s=s+p;
    l=l*5;

 }
 cout << s << "\n";

 }

return 0;
}

On codeblocks it’s giving the accurate answer but on submitting the solution it’s showing wrong answer. If somebody can help me please ,do help.