Reverse Man

Monu mia is a reverse man! Never heard of reverse man? If you ask him to write something in English,…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

#include<bits/stdc++.h>
using namespace std;

int main()
{
    char s[200];
    gets(s);
    strrev(s);
    {
        cout<<s;
    }
    return 0;
}

Whats the prob with this code?

What does it say when you submit the code?

Compilation error…

Remove gets. You cannot use this function in Toph.
You can use getline instead if you are using a little of C++.