#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int i=0;
int count=0;
cout<<s[0];
while(s[i]!=’\0’)
{
if(s[i]==s[i+1])
count++;
else
{
cout<<count+1;
cout<<s[i+1];
count=0;
}
i++;
}
return 0;
}
Whats wrong with my code its not passing any test cases
when i run it on some test cases in coding blocks ide it was showing me the correct output but while submitting it didnt pass any of the test cases,but i knew somewhere that this could be a reason for that, thanks ill change and recheck it
ok,feel free to ping me back in case u face any issue