Help me in solving CPPFALL385 problem

My issue

not taking my answer

My code

#include <iostream>
using namespace std;

// Base class
class Animal {
protected:
    string name;

public:
    Animal(string _name) : name(_name) {}

    void Eat() {
        cout << name << " is eating." << endl;
    }
};

// Derived class 1: Dog
class Dog : public Animal {
public:
    Dog(string _name) : Animal(_name) {}

    void Bark() {
        cout << name << " is barking." << endl;
    }
};

// Derived class 2: Cat
class Cat : public Animal {
public:
    Cat(string _name) : Animal(_name) {}

    void Meow() {
        cout << name << " is meowing." << endl;
    }
};

int main() {
    // Create instances of derived classes
    Dog myDog("Buddy");
    Cat myCat("Whiskers");

    // Call methods from the base class and derived classes
    myDog.Eat();   // Dog calling the Eat method from Animal
    myDog.Bark();  // Dog-specific method

    myCat.Eat();   // Cat calling the Eat method from Animal
    myCat.Meow();  // Cat-specific method

    return 0;
}

Learning course: Learn Programming and Problem Solving using C++
Problem Link: https://www.codechef.com/learn/course/sit-cpp-fall/SITFALL56/problems/CPPFALL385