online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> #include <iterator> #include <algorithm> int main() { std::vector<std::string> data = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; std::sort(std::begin(data), std::end(data)); copy(std::begin(data), std::end(data), std::ostream_iterator<std::string>(std::cout, "\n")); std::cout << '\n'; std::string val = "July"; bool found = std::binary_search(std::begin(data), std::end(data), val); std::cout << val << " " << (found ? "found" : "not found") << '\n'; }

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