Can you please post the full error message (using code tags as described in How to get the best out of this forum).
Right click in the output window, click "select all" and past it here between code tags.
Screenshots of errors are useless.
See How to update my program by uart? - #18 by Budvar10 how to upload a bin-file instead of a hex-file
Change the last i in the command that @ptillisch showed to an r so it looks like below.
"C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega2560 -cusbasp -Pusb "-Uflash:w:C:\Users\per\AppData\Local\Temp\arduino\sketches\D84308DA25B691C55A31BCB0E4C30A1C/sketch_dec10c.ino.hex:r"
I do not know for which board your friend compiled the code; the Arduino IDE defaults to hex files for a Mega. If your friend compiled for e.g. a Due, the code will not work.
You will need to run avrdude from the command line, you can not upload using the IDE.