Error code in VS2017

So… Something is unclear here for me.

When I’m open the project in VS2017 and I’m trying to build or debug the code everything is working perfectly fine without any errors. But… even so I’m getting some errors inside of VS2017.

Those are the errors: Imgur: The magic of the Internet

Why I’m getting them but my code is still compiled?