error in arduinomsoftware

Arduino: 1.8.1 (Windows 7), Board: "Arduino/Genuino Uno"

c:\program files\arduino\hardware\tools\avr\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: Permission denied

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

this massage shows when i try to verify any code.
please tell me what i have to do...

The same

IIRC this one is caused by overly aggressive antivirus software interfering with the build process. To confirm, turn off AV, and see if that fixes the problem.

If it does, turn the AV back on, and follow the instructions from the AV manufacturer to whitelist the arduino build tools.