online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int i, j, temp; int arr[5] = {10, 2, 0, 43, 12}; cout<<"Arreglo de entrada..."<<endl; for(i=0; i<5; i++){ cout<<arr[i]<<" "; } cout<<endl; // AQUI SE ORDENA EL ARREGLO for(i=1; i<5; i++){ for(j=0; j<5-i; j++){ if(arr[j] > arr[j+1]){ temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; } } } // SE IMPRIME EL ARREGLO ORDENADO cout<<"Arreglo ordenado..."<<endl; for(i=0; i<5; i++){ cout<<arr[i]<<" "; } 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