Exit status 1 error in compiling

Hello,
I am trying to explore arduino and I want to use IR remote to control leds and I came across this problem:

exit status 1
Compilation error: exit status 1

I have already enabled verbose output and this is what I got.

Using board 'uno' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Using core 'arduino' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Detecting libraries used...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\variants\standard" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp" -o nul
Alternatives for IRremote.hpp: [IRremote@3.9.0]
ResolveLibrary(IRremote.hpp)
-> candidates: [IRremote@3.9.0]
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\variants\standard" "-IC:\Users\User\Documents\Arduino\libraries\IRremote\src" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp" -o nul
Generating function prototypes...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\variants\standard" "-IC:\Users\User\Documents\Arduino\libraries\IRremote\src" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp" -o "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Users\User\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\variants\standard" "-IC:\Users\User\Documents\Arduino\libraries\IRremote\src" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp" -o "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp.o"
Compiling libraries...
Compiling library "IRremote"
Compiling core...
Using precompiled core: C:\Users\User\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_uno_df840bc50a889a9f80ee9768b846122d.a
Linking everything together...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B/sketch_nov16a.ino.elf" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B\sketch\sketch_nov16a.ino.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B/..\arduino-core-cache\core_arduino_avr_uno_df840bc50a889a9f80ee9768b846122d.a" "-LC:\Users\User\AppData\Local\Temp\arduino-sketch-D6E335294EA97D00EE81EC7C9593121B" -lm

Using library IRremote at version 3.9.0 in folder: C:\Users\User\Documents\Arduino\libraries\IRremote
exit status 1

Compilation error: exit status 1

Can someone tell me what seems to be the problem and how to solve it?

Thank you.

P.S: I am new here.

Edit:

I use:
arduino Uno
IR Receiver Sensor TSOP1838

This is the code I used:

#include <IRremote.hpp>

int receiver = 11;
int Redled = 9;
int Greenled = 13;

IRrecv irrecv(receiver);
decode_results results;

void setup() {
  pinMode(Redled, OUTPUT);
  pinMode(Greenled, OUTPUT);

  Serial.begin(9600);
  Serial.println("IR Button Pressed");
  irrecv.enableIRIn();
}

void loop() {
  if (irrecv.decode()) {
    IR();
    irrecv.resume();
  }
}

void IR() {
  switch (results.value) {
    case 0xFFA25D: Serial.println(" POWER"); break;
    case 0xFF629D: Serial.println(" STOP"); break;
    case 0xFFC23D: Serial.println(" EQ"); break;
    case 0xFFE01F: Serial.println(" PREVIOUS"); break;
    case 0xFFA857: Serial.println(" NEXT"); break;
    case 0xFF906F: Serial.println(" FORWARD"); break;
    case 0xFF6897: Serial.println(" INCREASE"); break;
    case 0xFF9867: Serial.println(" DECREASE"); break;
    case 0xFFB04F:
      Serial.println(" 0");

      digitalWrite(Redled, LOW);
      digitalWrite(Greenled, LOW);
      break;
    case 0xFF30CF:
      Serial.println(" 1");
      digitalWrite(Redled, HIGH);
      break;
    case 0xFF18E7:
      Serial.println(" 2");
      digitalWrite(Greenled, HIGH);
      break;
    case 0xFF7A85: Serial.println(" 3");
    case 0xFF10EF: Serial.println(" 4"); break;
    case 0xFF38C7: Serial.println(" 5"); break;
    case 0xFF5AA5: Serial.println(" 6"); break;
    case 0xFF42BD: Serial.println(" 7"); break;
    case 0xFF4AB5: Serial.println(" 8"); break;
    case 0xFF52AD: Serial.println(" 9"); break;
  };

  delay(500);
}

I think that we will need to see the code. The how to get the best out of this forum post, that @paulpaulson linked, explains how to properly post code and error messages.

Please use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

@shunnnn
If you use decode() method without parameter

the variable results has nothing to do with received IR code. You have to use
IrReceiver.decodedIRData.command
instead.
See the example

Your sketch compiles fine for me.

You do get a warning because there is no 'break;' between these two cases:

    case 0xFF7A85: Serial.println(" 3");
    case 0xFF10EF: Serial.println(" 4"); break;