The modern pentathlon is an Olympic sport that comprises five events : fencing , 200 m freestyle swimming , show jumping , and a final combined event of pistol shooting , and a 3200 m cross-country run .