online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <cstdlib> #include <time.h> using namespace std; void printVector(int vec[], int n){ for (int i=0; i<n; i++) cout<<vec[i]<<endl; } void randomVector(int vec[], int n, int min, int max){ srand(time(NULL)); //int vec[]={}; for(int i=0; i<n; i++) vec[i] = min+rand()%max; printVector(vec, n); } /* int rndvect(int a[], int dim, int min, int max){ int i; srand(time(NULL)); for(i=0; i<dim; i++){ a[i]=rand()%((max-min)+1)+min; } return 0 }*/ int main() { int vector[]={}; randomVector(vector, 5, 0, 20); 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