prog.c: In function ‘main’:
prog.c:5:26: error: expected identifier or ‘(’ before numeric constant
int head, tail, key = 0,6,5;
^
prog.c:13:4: error: expected ‘;’ before ‘break’
break;
^~~~~
prog.c:14:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(array[center]==key)
^~
prog.c:16:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
break;
^~~~~
prog.c:17:3: error: ‘else’ without a previous ‘if’
else if(array[center]<key)
^~~~
prog.c:19:3: error: expected ‘;’ before ‘else’
else
^~~~