online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <set> using namespace std; int main() { std::set<std::string> charset{"d", "b", "c"}; for (auto c: charset) { std::cout << c << " "; } auto vertex = charset.extract(charset.begin()); std::string& str = vertex.value(); str = "a"; std::cout << "\nAfter assigning to a new char\n" ; for (auto c: charset) { std::cout << c << " "; } charset.insert(std::move(vertex)); std::cout << "\nNew char set\n"; for (auto c: charset) { std::cout << c << " "; } 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