String compression problem


sir I am able to remove the repeated words but not able to print the count no
please correct the code.

please respond to the problem

@Megha2468 sorry for the late reply.Use strings for storing the input and output .the char array is storing your count as “a\x3b\x2” for a3b2.

I stored it in string but code is not giving any output https://ide.codingblocks.com/s/225277
please correct it.

@Megha2468
refer to this