The main function should have a return type of int, not void. This is important because it indicates the exit status of the program to the operating system.
In dequeue, the for loop to transfer elements from stack1 to stack2 doesn't handle the scenario where count is 0 properly.