I am not getting output while compiling

Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int i,j;
i=1;
while(i<=n)
{
Scanner sc = new Scanner(System.in);
long m = sc.nextLong();
long s=0L;
j=0;
while(m>=1)
{ long rem=m%10;
m=m/10;
s=(long) (s+Math.pow(2,j)*rem);
j++;
}
System.out.println(s);
i++;

	 }

i have written this code but when i am compiling this i am getting compile successful message but not getting any output. When I am submitting my code no test cases has passed.

@Coder9124,
https://ide.codingblocks.com/s/222836 corrected code

Error: don’t use 2 different scanner objects. Logic is correct.