Failed Testcase

I submitted this code and the computer is telling me that I didn’t score a perfect 100 because I didn’t account for all testcases. How do I fix it?

#include
using namespace std;
int main()
{

int N, x;
cin>> N;

for (int i=0; i<N; i++)
{
cin>> x;
int sum=0;
int base=1;
int temp=x;
int last;

   while (temp)
   {
	   
   		last=temp%10;
   		sum= sum+ (last*base);
		temp=temp/10;
		base = base*2;
   }

   cout << "decimal number =" << sum<< endl;

}

return 0;

}

hello @yamika

check now->

okay. I submitted the correct code and got the ‘success’ message. I’m not being awarded any points because I unlocked the test cases. I didn’t know what it meant. But now this problem is not being marked as ‘completed’. The green tick is not appearing. What should I do to mark my progress?

…

you will not be given any marks , if u submit code after looking at solution or test cases.

clear ur cache and then check whether green tick is appearing or not.
if not then pls contact support team .
email-> [email protected]

how should i clear the cache? i tried refreshing and it didn’t work

clear ur browsing history , it will clear the cache as well

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.