I am running the case given as example it is working but all test cases are failing i dont know why

please see my code as it is giving the correct output in vs code but not here

@arnavsinghal1234_e8bdbaa2ef8e20fb,
share the code or u can refer to https://ide.codingblocks.com/s/657727

#include #include using namespace std; int numb_lst(int n,int j) { int i,c; c=1; i=10; while ((n/i)!=0) { c++; i=i10; } int arr[c]; int a,k; k=0; while (n>0 && k<c) { a=n%10; n=n/10; arr[k]=a; k++; } return(arr[j-1]); } int main() { int n; cin>>n; int i,c; c=1; i=10; if (n<1000000000 && n>0) { while ((n/i)!=0) { c++; i=i10; } // cout<<c; int k=1; int arr[10]; while (k<=c) { int x; x=numb_lst(n,k); // cout<<x<<endl; arr[x]=k; // cout<<arr[x]<<endl; k++; } float sum=0; int m=9; while (m>=0) { if (arr[m]<=9) { sum=sum+arr[m]*pow(10,(c-1)); c–; } m–; } cout<<(sum); } return 0; }

@arnavsinghal1234_e8bdbaa2ef8e20fb,
share code link by saving code here http://ide.codingblocks.com/

as what u shared is not readable to us

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.