There are certain items that you must not take in your carry-on baggage because they present a security risk. If you are not sure whether an item is prohibited or not, check with your airline, pack it in your checked baggage or leave it at home.
You will be required to surrender any prohibited items you are carrying before you board the flight. Airports and airlines are under no obligation to store or return surrendered items.
(click on the image to view a larger version)