online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(void) { int n; int vet[n]; int t; int i; int lim; int lastswap; int swap; printf("Array lenght:"); scanf("%d\n", &n); for (i = 0; i < n; i++) { scanf("%d\n", &vet[i]); } lim = 0; do { swap = 0; for (i = n - 1; i > lim; i--) { if (vet[i] < vet[i - 1]) { t = vet[i]; vet[i] = vet[i - 1]; vet[i - 1] = t; swap = 1; lastswap = i; } lim = lastswap; } } while (swap != 0); for (i = 0; i < n; i++) { printf("%d\n", vet[i]); } }

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