Wrong answer on submission

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;

}

hi aparna
save your code to online ide of coding block and then post the save link here

This is the link: https://ide.codingblocks.com/s/167707

please check why i m getting 2 wrong answers on submission though my input test case output is correct

please ignore the previous link, this one is correct.

ide.codingblocks.com/s/167711 (corrected link)

Ur output contain the sorted order which is not req.

bbssagff
Output
b2s2a1q1f2
Your output
a1b2f2q1s2

alright, thankyou!! :slight_smile: