online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/* Preg 2[ 4/6] Se pide que sucursal y no el monto mayor de la sucursal */ #include <iostream> #define N 3 #define columnas 12 using namespace std; int main(){ int i, j, A[N][columnas], TotalVentas=0, MayorS=0, B[N]; for(i=0; i<N; i++){ for(j=0; j<columnas; j++){ cin>>A[i][j]; } } for(int i=0; i<N; i++){ for(j=0; j<columnas; j++){ cout<<A[i][j]<<" "; TotalVentas = TotalVentas + A[i][j]; B[i] = B[i] + A[i][j]; } cout<<endl; } for(int i=0; i<N-1; i++){ if (B[i]>MayorS){ MayorS = B[i]; } } cout<<"\nTotal de ventas de la compañia: "<<TotalVentas<<endl; cout<<"\nSucursal que mas vendio durante el año: "<<MayorS<<endl; 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