NOOB HERE , Need Help ... please

i don’t understand about the coding . So i decided to follow the youtubers . first i got an error that said :

Arduino: 1.6.0 (Windows 8), Board: “Arduino Uno”

ping_new.ino: In function ‘void loop()’:
ping_new.ino:74:1: error: a function-definition is not allowed here before ‘{’ token
ping_new.ino:84:1: error: a function-definition is not allowed here before ‘{’ token
ping_new.ino:89:1: error: expected ‘}’ at end of input
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

so … i add “}” after void loop … but it appears to be :

Arduino: 1.6.0 (Windows 8), Board: “Arduino Uno”

ping_new.ino:71:6: error: expected constructor, destructor, or type conversion before ‘(’ token
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

what should i do … i need to finish this project faster for my school project … please help me to finish this project … THANK YOU SO MUCH if you want to help me …

these is my code ( attachment )

ping_new.ino (2.26 KB)

This line of code
delay(200);Is not in a function, hence the error. Did you mean for it to be in the loop() function ?

It would be much simpler if you'd simply posted your code so we can all read it.