how to resolve this error type subscript have a look on my code
String max occuring char
Hi @Vivek-Pandey-2129725577345937
See your code is not printing any output because you are not printing value returned by the mostcount function. Instead of
mostcount( c );
you should use :
cout<<mostcount©<<endl;
And then all your test cases will pass.
1 Like