lcd not defined in this scope

I’m having an error that I don’t know how to fix. It tells me that LCD is not declared but I included the library.

#include <LiquidCrystal.h>


const int buttonPin1 = 2;


const int buttonPin2 = 3;


const int buttonPin3 = 4;


const int buttonPin4 = 5;




int buttonState1 = 0;
int buttonState2 = 0;
int buttonState3 = 0;
int buttonState4 = 0;




              /* This code sets up the essentials for your circuit to work. It runs first every time your circuit is powered with electricity. */
void setup() {
  // Setup Serial which is useful for debugging
  // Use the Serial Monitor to view printed messages
  Serial.begin(9600);
  Serial.println("start");
  lcd.begin (16, 2);

  
  lcd.print("Muiltitpe choice test");
 
  lcd.print("Have Fun");

  
}

void loop() {

buttonState1 = digitalRead (buttonPin1);

buttonState2 = digitalRead (buttonPin2);

buttonState3 = digitalRead (buttonPin3);

buttonState4 = digitalRead (buttonPin4);

  int reply = random(4);

  
  lcd.clear (); //Here is the error
  lcd.setCursor (0, 0);
  lcd.print ("");
  lcd.setCursor (0, 1);

You never created an instance of the lcd object you're trying to "clear" and "print" on.

You need something like this (define your pins correctly) before setup().

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

TheCityGame:
You never created an instance of the lcd object you're trying to "clear" and "print" on.

You need something like this (define your pins correctly) before setup().

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

Thank you. you are GOD