How to take multiple inputs?

Hello Sir!

How to take all the inputs given in the question? I can take only one input with my code.

Also, there seems to be a compilation error, can you pls help me with it?

int main() {

int rem = 0;
int dec = 0;
int base = 1;

cin >> bin;

while(bin!=0)
{
	rem = bin % 10;
	dec = dec + (bin * base);
	bin = bin / 10;
	base = base * 2;
}


return dec;

}

you can take input by using array of strings
also share your code using ide.codingblocks.com as i can’t see any of your submissions. and the code isn’t readable here.

Sir, how to share code using ide?


I’m sharing it here meanwhile.

How to take multiple i/p?
My code can take only one i/p.
Thanks

Study this code, if there’s anything you didn’t understand you can ask me here.

I understood.
Thanks a lot!

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.