prog.cpp: In function ‘int main()’:
prog.cpp:11:5: error: ‘MallardDuck’ was not declared in this scope
MallardDuck Duck1;
^~~~~~~~~~~
prog.cpp:12:5: error: ‘Duck1’ was not declared in this scope
Duck1.fly();
^~~~~
prog.cpp:15:5: error: ‘RubberDuck’ was not declared in this scope
RubberDuck Duck2;
^~~~~~~~~~
prog.cpp:16:5: error: ‘Duck2’ was not declared in this scope
Duck2.fly();
^~~~~
prog.cpp: In constructor ‘RubberDuck::RubberDuck()’:
prog.cpp:57:9: error: ‘NoFly’ was not declared in this scope
NoFly FlyBehavior;
^~~~~
prog.cpp:58:9: error: ‘Squeak’ was not declared in this scope
Squeak QuackBehavior;
^~~~~~
prog.cpp: In constructor ‘MallardDuck::MallardDuck()’:
prog.cpp:67:9: error: ‘FlyWithWings’ was not declared in this scope
FlyWithWings FlyBehavior;
^~~~~~~~~~~~
prog.cpp:68:9: error: ‘Quack’ was not declared in this scope
Quack QuackBehavior;
^~~~~