online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; void bubbleSort(int arr[], int n) { if (n == 1) return; for (int i=0; i<n-1; i++){ if (arr[i] < arr[i+1]) swap(arr[i], arr[i+1]); } bubbleSort(arr, n-1); } int main() { int vector[]={}; int i=0; while(true){ cout<<"Ingrese la gravedad del paciente: "; cin>>vector[i]; bubbleSort(vector, i+1); for(int j=0; j<i+1; j++){ cout<<vector[j]<<" "; } cout<<endl; 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