online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <list> #include <algorithm> #include <iterator> int main() { std::list<int> coll{ 0, 3, 0, 1, 0, 0, 2, 5, 0, 4 }; // Implement your solution here auto condition = [](auto v){ return (v == 0); }; std::partition(std::begin(coll), std::end(coll), condition); std::copy(std::begin(coll), std::end(coll), std::ostream_iterator<int>(std::cout, " ")); }

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