NOT PRINTING NEGATIVE NUMBERS

I HAVE USED SIGNED INT THEN ALSO MY CODE IS JUST IGNORING NEGATIVE INTERGER AS INPUT

#include
using namespace std;
int main()
{
signed int n, reverse=0, rem;
cout<<"";
cin>>n;
while(n!=0)
{
rem=n%10;
reverse=reverse*10+rem;
n/=10;
}
cout<<""<<reverse<<endl;
return 0;
}


@dharamrajroy_275ef8688612039e, our code is passing all test cases what is the issue?

@dharamrajroy_275ef8688612039e u wont get negative value
read the question it says

Constraints
0 <= N <= 1000000000

@dharamrajroy_275ef8688612039e try submitting here https://hack.codingblocks.com/app/practice/1/100/problem once, im just copy pasting your code its passing all cases

yeah its working now thanks