var C = 1
That's inside the function _on_Area2D_area_entered().
It needs to be at the top of the file, before the functions.
The four errors are warnings about unused variables. I would check to make sure the variables aren't supposed to used, and then remove the warnings, either by prefixing the variable names with an underscore or using #warning directives.