Compilation error: exit status 1

Im using arduino uno to make rfid attendance and im getting the compilation error: exit status this is my code:

#include <SPI.h>

#include <MFRC522.h>

#include <TimeLib.h>

#define SS_PIN 10

#define RST_PIN 9

MFRC522 mfrc522(SS_PIN, RST_PIN);

String card_ID="";

String Name1="20522125162";

String Name2="10971127162";

String Name3="14128125162";

String Name4="93247127162";

String Name5="79 DD 81 2F";

String Name6="89 48 C9 2F";

int NumbCard[6];

int j=0;

int statu[6];

int s=0;

int const RedLed=6;

int const GreenLed=5;

int const Buzzer=8;

String Log;

String Name;

long Number;

int n ;

int ID=1;

void setup() {

setTime(20,0,0,3,30,2019);

Serial.begin(9600);

SPI.begin();

mfrc522.PCD_Init();

Serial.println("CLEARSHEET");

Serial.println("LABEL,ID,Date,Name,Number,Card ID,Time IN,Time OUT");

pinMode(RedLed,OUTPUT);

pinMode(GreenLed,OUTPUT);

pinMode(Buzzer,OUTPUT);

setTime(20,0,0,3,30,2019);

delay(200);

}

void loop() {

if ( ! mfrc522.PICC_IsNewCardPresent()) {

return;

}

if ( ! mfrc522.PICC_ReadCardSerial()) {

return;

}

for (byte i = 0; i < mfrc522.uid.size; i++) {

 card_ID += mfrc522.uid.uidByte[i];

}

Serial.println(card_ID);

   if(card_ID==Name1){

   Name="Syariffullah Bin Syariffudin";

   Number="CD,16,7F,A2";

   j=0;

   s=0;

  }

  else if(card_ID==Name2){

   Name="Second employee";

   Number="6D,47,7F,A2";

   j=1;

   s=1;

  }

  else if(card_ID==Name3){

   Name="Third employee";

   Number="8D,1C,7D,A2";

   j=2;

   s=2;

  }

  else if(card_ID==Name4){

   Name="Fourth employee";

   Number="5D,F7,7F,A2";

   j=3;

   s=3;

  }

  else if(card_ID==Name5){

   Name="Fiveth employee";

   Number=789101;

   j=4;

   s=4;

  }

  else if(card_ID==Name6){

   Name="Sixth employee";

   Number=789101;

   j=5;

   s=5;

  }

  else{

      digitalWrite(GreenLed,LOW);

      digitalWrite(RedLed,HIGH);

      goto cont;

 }

  if(NumbCard[j] == 1 && statu[s] == 0){

  statu[s]=1;



  Serial.print("DATA,");

  Serial.print(ID);

  Serial.print(",");

  Serial.print("DATE");

  Serial.print(",");

  Serial.print(Name);

  Serial.print(",");

  Serial.print(Number); 

  Serial.print(",");

  Serial.print(card_ID); 

  Serial.print(",");

  Serial.print("");

  Serial.print(",");

  Serial.println("TIME");

  ID=ID+1;

  digitalWrite(GreenLed,HIGH);

  digitalWrite(RedLed,LOW);

  digitalWrite(Buzzer,HIGH);

  delay(30);

  digitalWrite(Buzzer,LOW);

  }

  else if(NumbCard[j] == 0){

  NumbCard[j] = 1;

  

  n++;



  Serial.print("DATA,");

  Serial.print(ID);

  Serial.print(",");

  Serial.print("DATE");

  Serial.print(",");

  Serial.print(Name);

  Serial.print(",");

  Serial.print(Number); 

  Serial.print(",");

  Serial.print(card_ID); 

  Serial.print(",");

  Serial.print("TIME");

  Serial.print(",");

  Serial.println("");

  digitalWrite(GreenLed,HIGH);

  digitalWrite(RedLed,LOW);

  digitalWrite(Buzzer,HIGH);

  delay(30);

  digitalWrite(Buzzer,LOW);

  ID=ID+1;

  }

  else if(statu[s] == 1){

 

  }

  delay(1000);

cont:

delay(2000);

digitalWrite(GreenLed,LOW);

digitalWrite(RedLed,LOW);

card_ID="";

}

void printTime() {

Serial.print(hour());

Serial.print(":");

Serial.print(minute());

Serial.print(":");

Serial.print(second());

Serial.print(",");

}

and this is the error i get:

C:\Users\USER\Documents\Arduino\rfid_read_personal_data\Arduino Code attendance record.cpp: In function 'void loop()':
C:\Users\USER\Documents\Arduino\rfid_read_personal_data\Arduino Code attendance record.cpp:108:21: error: 'Name7' was not declared in this scope
else if(card_ID==Name7){
^~~~~
C:\Users\USER\Documents\Arduino\rfid_read_personal_data\Arduino Code attendance record.cpp:108:21: note: suggested alternative: 'Name'
else if(card_ID==Name7){
^~~~~
Name
C:\Users\USER\Documents\Arduino\rfid_read_personal_data\Arduino Code attendance record.cpp:133:17: error: 'Class' was not declared in this scope
Serial.print(Class);
^~~~~
C:\Users\USER\Documents\Arduino\rfid_read_personal_data\Arduino Code attendance record.cpp:133:17: note: suggested alternative: 'class'
Serial.print(Class);
^~~~~
class
Compilation error: exit status 1}

im still new in using an arduino so please help me

That is not all your code. There is more in this file:

Although the primary file extension for Arduino sketches is .ino, sketches may also contain .cpp files, which are compiled as C++. you will see these additional files in the Arduino IDE as tabs. However, it might not be shown in this case depending on which version of the Arduino IDE you are using because the 1.x IDE does not support sketch files with spaces in them.

The .cpp files are compiled in addition to your primary .ino sketch file. It is that Arduino Code attendance record.cpp file that contains the error, but you have not shared that file.

What is the origin of this Arduino Code attendance record.cpp file? Did you download it from the Internet somewhere? If so, post a link to where you downloaded it from. Or did you write the code yourself? If so, was there a reason you used the .cpp file extension?