i'm trying to create a new object and save it to core data. even my code is correct as syntax and logic -as i've learned- ,but I can't understand why these errors occur.

i'm trying to create a new object and save it to core data. even my code is correct as syntax and logic -as i've learned- ,but I can't understand why these errors occur.

Copyright © 2021 Jogjafile Inc.
It looks like you need:
at the top of the file.