online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// 3a.cpp #include <iostream> #include <iomanip> using namespace std; const int FILAS = 7; const int COLUMNAS = 3; typedef double Matriz[FILAS][COLUMNAS]; void generar(Matriz matriz); void mostrar(Matriz matriz); int main() { Matriz matriz; srand(time(nullptr)); generar(matriz); mostrar(matriz); } void generar(Matriz matriz) { for (int j=0; j<FILAS; ++j) for (int k=0; k<COLUMNAS; ++k) matriz[j][k] = 3+rand()%6; } void mostrar(Matriz matriz) { int tienda[] = {8, 9, 10}; for (int j=0; j<FILAS; ++j) { cout<<"dia "<<j+1<<" :"; int suma = 0; for (int k=0; k<COLUMNAS; ++k) suma += matriz[j][k]*tienda[k]; cout<<setw(4)<<suma<<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