So I have been trying to run a piece of code from geeksforgeeks but I keep getting the following error when I compile:
Undefined symbols for architecture x86_64: