I went to Sweden in early 2014 to visit a friend. I was 18 y/o and, due to problems back home, I ended up staying there for a year. I then left in late 2015 without any problems. I went back to visit again in 2015, was allowed in without any problems, and stayed another year leaving in 2016 without any problems. What i didn't know was that I could only stay there for 3 months on my passport. Since I never got in trouble or anything, I didn't think it was an issue. It's only now when I'm thinking about getting a work permit over there that I came to realize that I need a resident permit.
So I'm wondering what might happen if I apply for the resident permit since they need to see the stamps on my passport?