Hi, @electric_panda
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
This will help with advice on how to present your code and problems.
Is this the first Arduino controller you have tried to upload to?
Have you selected the correct board and also tried the Old Bootloader option.
Tom..