online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<bits/stdc++.h> using namespace std; string reverse(string s){ if(s.length()<=1)return s; return reverse(s.substr(1,s.length()-1)) + s[0]; } int main() { string s; cin>>s; string ans = reverse(s); cout<<ans; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue