Code:
main.cpp: In member function ‘void Dog::setAge(int)’:
main.cpp:12:24: error: ‘age’ was not declared in this scope
12 | void setAge(int yrs) {age = yrs;}
| ^~~
main.cpp: In member function ‘void Dog::setWeight(int)’:
main.cpp:13:31: error: ‘weight’ was not declared in this scope
13 | void setWeight ( int ibs ) { weight = ibs ; }
| ^~~~~~
main.cpp: In member function ‘void Dog::setColor(std::string)’:
main.cpp:14:32: error: ‘color’ was not declared in this scope
14 | void setColor (string hue ) { color = hue ; }
| ^~~~~
main.cpp: In member function ‘int Dog::getAge()’:
main.cpp:16:24: error: ‘age’ was not declared in this scope
16 | int getAge() { return age ; }
| ^~~
main.cpp: In member function ‘int Dog::getWeight()’:
main.cpp:17:27: error: ‘weight’ was not declared in this scope
17 | int getWeight() { return weight ; }
| ^~~~~~
main.cpp: In member function ‘std::string Dog::getColor()’:
main.cpp:18:29: error: ‘color’ was not declared in this scope
18 | string getColor() { return color ; }
| ^~~~~
main.cpp: In member function ‘void Dog::setValues(int, int, std::string)’:
main.cpp:23:8: error: ‘class Dog’ has no member named ‘age’
23 | this->age = age;
| ^~~
main.cpp:24:8: error: ‘class Dog’ has no member named ‘weight’
24 | this->weight = weight;
| ^~~~~~
main.cpp:25:8: error: ‘class Dog’ has no member named ‘color’
25 | this->color = color;
| ^~~~~
main.cpp: In function ‘int main()’:
main.cpp:32:32: error: ‘void Dog::setValues(int, int, std::string)’ is private within this context
32 | fido.setValues( 3, 15, "brown");
| ^
main.cpp:21:6: note: declared private here
21 | void Dog::setValues ( int age, int weight, string color)
| ^~~
main.cpp:41:33: error: ‘void Dog::setValues(int, int, std::string)’ is private within this context
41 | pooch.setValues( 4, 18, "gray" );
| ^
main.cpp:21:6: note: declared private here
21 | void Dog::setValues ( int age, int weight, string color) | ^~~