Getting Code error

I am adding code in my website growthtakeover.com theme header getting this error. can any help me to fix this issue.

Uncaught Error: Call to undefined function add_action() in /home/8YkNU8/prog.php:3 Stack trace: #0 {main} thrown in /home/8YkNU8/prog.php on line 3