online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <vector> #include <algorithm> #include <random> int main() { std::vector<int> v{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; std::random_device rd; std::mt19937 gen(rd()); // Mersenne Twister engine. // std::shuffle(v.begin(), v.end(), gen); // (Since C++11) std::ranges::shuffle(v, gen); // (Since C++20) for (const auto& i : v) { std::cout << i << std::endl; } }

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