How to deal with ants?

Idk where else to ask this😭😭…..so I live in a hostel, so basically everything I have is a bedroom. Sooo… sometimes I have some food on my bed and recently I’ve been being bitten by something while sleeping and I noticed ANTS on bed. What I did first was, kept aside the bed frame outside in the open so it’d go away, did most of the work. But now I notice some on my mattress as well. They come rarely but as a gang, idk the reason and now I’m confused it’s inside the mattress where I can’t see. Any helps on this plspls bc I’m sleeping on the floor rn 😭