"expected ')' before user-defined string literal" error message

I made this simple code for a countdown clock

#include <LiquidCrystal.h>
int minutes = 0;
int hours = 169;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
  // put your setup code here, to run once:
  lcd.begin(16, 2);
 lcd.setCursor(1, 0);
}

void loop() {

lcd.print(hours":"minutes);
  
 while(minutes > 0 ); {
 delay(60000);
 minutes = (minutes - 1);
 }
 if(minutes = 0){
 delay(60000);
 minutes = 59;
 hours = (hours - 1);
 }
 
}

For some reason it says “expected ‘)’ before user-defined string literal” with line 13 highlighted.
Can you help find out why?

lcd.print(hours":"minutes);

Not sure what you want printed, but the quotes are in the wrong places.

lcd.print("hours : minutes");

Makes sense.

If that is not what you want, tell us what it is.

If you want the quotes to be printed you will need to use the escape sequence ".

void setup()
{
    Serial.begin(115200);
    Serial.print("hours\" : \"minutes");
}

void loop()
{

}
if(minutes = 0)

Oops
while(minutes > 0 ); Again, oops

@TheMemberFormerlyKnownAsAWOL what is wrong with the

if(minutes = 0)

@groundFungus I was trying to print the time remaining. For example 12:14

Sounds like what you wanted was:

  lcd.print(hours);
  lcd.print(":");
  lcd.print(minutes);

owen5600:
@TheMemberFormerlyKnownAsAWOL what is wrong with the

if(minutes = 0)

Try it.

thanks for helping guys. I did what you guys said and now it is working.