I assume you were at a remote stand and were dropped off at the wrong entrance.
You will have a problem when leaving. I'd find a police officer before leaving the airport and explain what happened. Ideally before you leave the baggage area.
EDITED to say: you will have a problem if travelling on a non-schengen passport, if you're traveling on a passport that doesn't need to be stamped on arrival you'll be fine.