Hey, i'm little confused. Somewhere in this code there is a problem i think so. I believe that the problem is in the for which push p in the stack.I need help!
the problem is to find out which cars are still in the ferry boat. It's given a number of the ports, how many cars went out, how many cars came in and the name of the car.
For example:
Input:
3
0 4 Audi Ford Fiat Toyota
2 3 BMW Suzuki Honda
4 2 Mercedes Citroen
Output:
Audi
Citroen
Mercedes
i'm sorry for my poor english