online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; #include <iostream> using namespace std; int main() { int arr[] = {1, 3, 3, 3, 6}; size_t len_arr = std::size(arr); for (size_t i = 0; i < len_arr; i ++){ for (size_t j = i + 1; j < len_arr; j ++){ if (arr[i] == arr[j]){ for (size_t k = j; k < len_arr - 1; k++){ arr[k] = arr[k + 1]; } len_arr--; j--; } } } for (size_t i = 0; i < len_arr; i ++){ cout << arr[i] << " "; } }

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