prog.c: In function ‘main’:
prog.c:17:3: error: expected ‘;’ before ‘break’
break;
^~~~~
prog.c:19:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(array[center]==key)
^~
prog.c:21:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
break;
^~~~~
prog.c:22:2: error: ‘else’ without a previous ‘if’
else if(array[center]<key)
^~~~
prog.c:25:2: error: expected ‘;’ before ‘else’
else
^~~~