online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <random> #include <functional> // For std::bind() auto createUniformPseudoRandomNumberGenerator(double max) { std::random_device seeder; std::default_random_engine generator{seeder()}; std::uniform_real_distribution distribution{0.0, max}; return std::bind(distribution, generator); } int main() { const int SIZE = 10; int myArray[SIZE]; double limit{}; std::cout<<"Enter max number limit.\n"; std::cin>>limit; static auto random_number=createUniformPseudoRandomNumberGenerator(limit); for (size_t i{};i<SIZE;++i) { myArray[i]= random_number(); } 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