Combining two sketches

I did that yet the same error still shows up