VSCode shows there's errors in my code even if I can compile my code.
This can be a misconfiguration of VSCode's Intellisense.