Showing unnecessary zeros in output

#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
while(n>0)
{
int input=0,l=0;
cin>>input;
int c=0,i=0;
while(input>0)
{ l=input%10;
input/=10;
c+=l*pow(2,i++);
}
cout<<c;
n=n-1;
}

return 0;

}

Please Send the link of your code

how to send Link of Code ?
paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793

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.