Expected `;' before '{' token

I'm guessing you don't have this library located in the correct place:
CapacitiveSensor.h

Scroll up in the bottom part of the IDE window, or drag the bottom up to make the viewing are bigger, and see if that is noted.