Error compiling for board Arduino/Genuino Uno.

Searched this kind of errors mostly Punctuation mistakes?
Please help.

#include <carloop.h>

const auto OBD_REQUEST_ID      = 0x7E0;
const auto OBD_REPLY_ID        = 0x7E8;
const auto OBD_PID_SERVICE     = 0x01;

SYSTEM_THREAD(ENABLED); // To not block the main program while searching for WiFi
Carloop<CarloopRevision2> carloop; // Instantiate Carloop Object

SYSTEM_MODE(SEMI_AUTOMATIC);

int mode = 0;
int pid = 0;

void processMode1(int pid);
void processMode2(int pid);

void setup() {
    carloop.begin(); // Creates the appropriate CANChannel
    Serial.begin(9600); // Open serial connection at 9600 baud, bits per second
    Serial.print("Starting Up \n");
    
    WiFi.connect();
}
void loop() {
    CANMessage message;

    while(carloop.can().receive(message)) {
        mode = message.data[1];
        pid = message.data[2];
        
        Serial.print("Mode ");
        Serial.print(mode);
        Serial.print(" Pid ");
        Serial.println(pid);
        
        if(mode == 1) {
            processMode1(pid);
        }
    }
}

void processMode1(int pid) {
    CANMessage message;
    message.id = 0x7E8;
    message.len = 8;
        
    if(pid == 0) {
        message.data[0] = 6;
        message.data[3] = 0x88;
        message.data[4] = 0x18;
        message.data[5] = 0x80;
        message.data[6] = 0x13;
    } else if(pid == 12) {
        message.data[3] = 100 * 4 / 256;
        message.data[4] = 100 - (100 * 4 / 256);        
    } else if(pid == 13) {
        message.data[3] = 75;
    } else if(pid == 4) {
        message.data[3] = 98;
    } else if(pid == 31) {
        message.data[3] = (millis() / 1000)/256;
        message.data[4] = (millis() / 1000) - (millis() / 1000) / 256;
    } else if(pid == 47) {
        message.data[3] = 60;
    }
    
    carloop.can().transmit(message);
}

void processMode2(int pid) {
    
}

C:\Users\HUA~1.DEL\AppData\Local\Temp\arduino_cache_911669 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose E:\design_info\DIY\ARDUINO\0_CAN\My own ECU simulator\My_own_ECU_simulator_a\My_own_ECU_simulator_a.ino
Using board 'uno' from platform in folder: C:\Users\HUA.DELLV-PC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.11
Using core 'arduino' from platform in folder: C:\Users\HUA.DELLV-PC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.11
open C:\Users\HUA~1.DEL\AppData\Local\Temp\arduino_build_474703\sketch\My_own_ECU_simulator_a.ino.cpp: Access is denied.
Error compiling for board Arduino/Genuino Uno.

Access is denied.

In my experience such errors are caused by the file being opened by anti virus software thus preventing the compiler accessing it. Try temporarily disabling your anti virus software

UKHeliBob:

Access is denied.

In my experience such errors are caused by the file being opened by anti virus software thus preventing the compiler accessing it. Try temporarily disabling your anti virus software

Thanks,
but I don't think I have an anti virus software.

It seems your ino file is on the E drive and the compiler on the C drive. Maybe there is an access conflict or the IDE does not have the rights to access some part of the C drive. Try running the IDE as administrator.

lesept:
It seems your ino file is on the E drive and the compiler on the C drive. Maybe there is an access conflict or the IDE does not have the rights to access some part of the C drive. Try running the IDE as administrator.

Thanks,
Same result, the IDE has being used for a long time well.

Maybe you have installed some other SW on your computer that created a problem somewhere. Try uninstalling and reinstalling the IDE