Why i am getting error in submitting it showing tle error

#include
using namespace std;
int main()
{
int num,i;
cin>>num;
for(i=0;num!=10;i++)
{
cout<<num%10;
num=num/10;
}
return 0;
}

constraints are large
0 <= N <= 1000000000
so use long long int

also change condition num!=10
use num>0

thank you so much bhaiya:)

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.