Discussion About Print reverse

This is Discussion thread about Print reverse

#include

using namespace std;

int main()

{

int N,sum=0;

cin>>N;

while(N!=0)

{

N=N%10;

sum=sum*10+N;

N=N/10;

}

cout<<sum;

}

what is the erroe sir