My code is not working on HackerBlocks

I wrote the same program as Pratik Bhaiya taught in the video, but its not working on HackerBlocks.

In my Offline IDE this code is working fine, but not working correctly in ant Online IDE.

Please Help!!

Problem :- https://hack.codingblocks.com/app/practice/6/1042/problem

My Code :- https://ide.codingblocks.com/s/359282

Hey @Shivam01
Input reversal and setordering like this

cin>>reversal;
cin>>strOrdering;

Getline takes input till end of line is found so it will take both in rversal only .

If this resolves your query then please mark it as resolved :slight_smile:

Thank you bro, your suggestion really worked!!

1 Like