The comma after option
linenos is missing. For more information about options like
breaklines see section “5.3 Available options” in the manual of package
minted.
BTW:
\lstset is a
listings command. For minted you can setup the options either with
\setminted or as optional argument of the
minted environment. See the manual for more information.
BTW: If you have a problem, instead of a screenshot and a code snippet a
minimal working example that makes it possible to reproduce this problem and to test a suggestions would be useful. And error messages should be quoted. Something like “gives an error” is far away from being enough information. It is more like, “my dishwasher does not wash”. Not enough information, neither to describe the symptom nor for a proper remote diagnostic.