hey i m getting two test case as wrong answers on submission. can you tell me for which test cases my code is not working properly.
#include
#include<string.h>
using namespace std;
int main() {
string s;
cin>>s;
char c;
int count;
int arr[26]={0};
for(int i=0;i<s.length();i++)
{
count=s[i]-'a';
// cout<<count<<endl;
arr[count]+=1;
// cout<<arr[count]<<endl;
}
for(int i=0;i<26;i++)
{
if(arr[i]!=0)
{
c=i+'a';
cout<<c;
cout<<arr[i];
}
}
return 0;
}