online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <bits/stdc++.h> using namespace std; // Function to reverse a string void reverse(string str) { for (int i=str.length()-1; i>=0; i--) cout << str[i]; } // Driver code int main() { string s; getline(cin, s); reverse(s); 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