Brackets error please help

error showing a fuction declaration not allowed here somebody plz help me

akhil.ino (15.4 KB)

For a start, your loop() is closed prematurely with a } on line 488 but it seems to carry on with code after that. There may be other imbalances...

Auto Format the code in the IDE.
All functions should start on the left margin. If they don't then it is almost a certain indication of a missing closing brace on the code immediately before the start of the function and maybe more that one.

For example

            Serial.println(vcm2);
            Serial.println("vcm3");
            Serial.println(vcm4);
            loop();
          }
          void wish()
          //errorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
          while (1)
          {

Incidentally, why are you calling loop() from loop() ? Why not just return;