Stringcompreeession prob

#include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin>>s;

for(int i=0;i<s.length();i++)
{
  int d=0;
  int count=1;
 while((i<s.length()-1)&&(s.at(i)==s.at(i+1)))
 {
     count ++;
     i++;
 }
 
 cout<<s.at(i)<<count;
}





return 0;

}
which test case it is failing

Hi @singhalharsh10081999,
your code is passing all the test cases in my system.Try again to submit.

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.