problem joining 2 sketches together

which is not going to well

Define "not going too well".

Assuming you remove the join marks, or at least comment them out, the code compiles, so what's the problem?