I tried to upload this sketch it contains vibration detector with other different detectors, but I have this problem that I don't understand in the void loop section of the vibration sketch

The compiler is correct.
I'm guessing you're missing another function

Please remember to use code tags when posting code