When I try to verify your code I get:
sketch_sep20a.cpp: In function 'void loop()':
sketch_sep20a:157: error: 'pulse' was not declared in this scope
When I comment out that line it compiles and uploads to my Arduino UNO R2 just fine.
Try a different USB cable or port.