prog.c: In function ‘main’:
prog.c:16:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
prog.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
break;
^~~~~
prog.c:20:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(array[center]==key)
^~
prog.c:22:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
break;
^~~~~
prog.c:23:5: error: ‘else’ without a previous ‘if’
else if(array[center]<key)
^~~~
prog.c:24:9: error: expected ‘;’ at end of input
head=center+1
^~~~
prog.c:34:0: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
prog.c:24:9: error: expected declaration or statement at end of input
head=center+1
^~~~
prog.c:24:9: error: expected declaration or statement at end of input