/in/foo.c: In function 'main':
/in/foo.c:7:2: error: variable-sized object may not be initialized
int a[n]={0};
^~~
/in/foo.c:7:12: warning: excess elements in array initializer
int a[n]={0};
^
/in/foo.c:7:12: note: (near initialization for 'a')
/in/foo.c:13:3: warning: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
swap (a[j],a[j-1]);
^~~~
/in/foo.c:16:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a[i]=a[i+1])
^~
/in/foo.c:25:2: error: expected ';' at end of input
return 0
^~~~~~
/in/foo.c:25:2: error: expected declaration or statement at end of input