i am surprised it got to the linker??
remove the bracket after void modify() {} -> } and put a bracket after switch case.
this will end the main and the linker will find the functions it is complaining for