Look at the error message, and at the code it describes - you have a lot of information there:
main.c:58:34: error: expected ‘)’ before ‘cqueue’
printf("%d was deleted\n"cqueue[front]);
^~~~~~
Let's break it down:
main.c:58:34: error: expected ‘)’ before ‘cqueue’
^ ^ ^ ^
| | | Error message
| | --------- Column number
| ------------ Line number
---------------------File name
So, the error is in "main.c", on line 58, column 34, and it's complaining that it "expected ‘)’ before ‘cqueue’"
It then shows you line 58 and points at where it found the problem, just to be helpful:
printf("%d was deleted\n"cqueue[front]);
^~~~~~
So look at the code: it's saying it expected the
printf
function call to end after the format string, but it found something it didn't understand.
Hmmm ... shouldn't there be a comma between the format string and the parameters?
printf("%d was deleted\n", cqueue[front]);
Try that, and some of your other errors will go away at the same time!