Problem with Arduino or Blynk Library?

I have a old code in my Arduino, It was working normally, after some time, I tried to compile it, and I got this error:

18_Loop:8:59: error: variable or field 'BlynkWidgetWrite5' declared void

 BLYNK_WRITE(V5) // (BLYNK) Estado do buzzer

                                                           ^

18_Loop:8:24: error: 'BlynkReq' was not declared in this scope

 BLYNK_WRITE(V5) // (BLYNK) Estado do buzzer

                        ^

18_Loop:8:71: error: expected primary-expression before 'const'

 BLYNK_WRITE(V5) // (BLYNK) Estado do buzzer

                                                                       ^

exit status 1
variable or field 'BlynkWidgetWrite5' declared void

The question is, if I create a new Arduino file and use paste EXACLY the same code, it compiles!!! Why that happens??? Do I have to change anything in my old file?

This started after formating my computer…

You probably have a newer library then when your code was originally written.

Can you verify for us you are using the newest Blynk library? Then post your full code. The gang here is really good about helping if you give them what they need to find the problem.

Also, you might want to review the documentation, comparing your commands to new version samples.