online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <algorithm> using namespace std; int main() { int arr[] = {1, 3, 3, 3, 6}; auto last = std::end(arr); for (auto it = std::begin(arr); it < last; it++) { last = std::remove(std::next(it), last, *it); } for (auto it = std::begin(arr); it < last; it ++){ cout << *it << " "; } 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