My compilation ends with an error

I thought the problem was in the library, and finally it turned out to be in the code.
Here’s the solution