Patrice fixed your compilation problem. However, the code, as it stands, still has flaws. See the notes below:
#include <stdio.h>
int main()
{
int n, r=0 , rev;
scanf("%d",&n);
r = n % 10;
rev = rev * 10 + r ; n =n / 10; printf ("%d",rev); return 0;
}