online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> #include <regex> using namespace std; int main(){ try{ string rs1 = "[+\\-*=/!]"; cout<<rs1<<" --> "; regex re( rs1 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } try{ string rs2 = "[+\\-]"; cout<<"\n"<<rs2<<" --> "; regex re( rs2 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } try{ string rs3 = "[\\-+]"; cout<<"\n"<<rs3<<" --> "; regex re( rs3 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } try{ string rs4 = "[+-]"; cout<<"\n"<<rs4<<" --> "; regex re( rs4 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } try{ string rs5 = "[-+]"; cout<<"\n"<<rs5<<" --> "; regex re( rs5 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } try{ string rs6 = "[-+*=/!]"; cout<<"\n"<<rs6<<" --> "; regex re( rs6 ); } catch (std::regex_error r) { cout<<"The error is: "<<r.what(); } 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