This is not actually a virus but a practical joke. It will make your victim believe that his system is under seize and is infected.
Remember you need to compile it only (.ie click on compile option ) and not run it(i.e click on run option).
This will generate the .EXE file.
-Replace location to the location where you want the file to be saved
Note: Even though this is just a prank be careful im not responsible for any of your further action.