Serial print error with DS3231 RTC [Solved]

Would someone be able to help me trouble shoot this problem, then would you be able to tell be how i can avoid this error in the future.

Here is my code:

#include <DS3231.h> 
Time t;
DS3231  rtc(SDA, SCL);

void setup()
{
  
  Serial.begin(115200);
  rtc.begin();
  int Hor;
  int Min;
  int Sec;
    //rtc.setDOW(THURSDAY);     
    //rtc.setTime(15, 40, 00);     //(24hr format)
    //rtc.setDate(16, 8, 2018);   
}

void loop()
{
   /////////////////////////////////////////////////////////////
  //for testing reasons
  // Send day of week
  //Serial.print(rtc.getDOWStr());
  //Serial.print(" ");
  //
  // send date
  //Serial.print(rtc.getDateStr());
  //Serial.print(" -- ");

  //Serial.print("Temp: ");
  //Serial.println(rtc.getTemp());
  //Serial.print(" C");
  //Serial.print(" -- ");

  // send time
  Serial.print("Time: ");
  Serial.println(rtc.getTimeStr());//prints current time
  /////////////////////////////////////////////////////////////
  
  delay (1000);// time sent every second
}

Thank you in advance.

Screen shot should be attached

You are not showing us the whole picture here. The error messages indicate that you have two files (tabs) open in the IDE, rtc_clock.ino and water pump.ino.

My bad sorry, i must of saved in a folder with another sketch inside. Do ardiuno file have to be saved within different folders?

Error is fixed, however when i run my program the serial print does not print the time

"Serial.print("Time: ");
Serial.println(rtc.getTimeStr());//prints current time"

but rather
"
Time:
"
followed by nothing

Spades101:
Do ardiuno file have to be saved within different folders?

Each sketch must be in its own folder. A sketch may consist of multiple files. But you can't put multiple separate sketches in the same folder together because they will all be compiled, resulting in redefinition errors like you got.

Spades101:
when i run my program the serial print does not print the time

"Serial.print("Time: ");
Serial.println(rtc.getTimeStr());//prints current time"

but rather
"
Time:
"
followed by nothing

Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.