prog.cpp:3:5: error: 'Animated' does not name a type
Animated<sf::Vector2> position;
^
prog.cpp:4:5: error: 'Animated' does not name a type
Animated<float> radius;
^
prog.cpp:5:5: error: 'Animated' does not name a type
Animated<cf::Color> color;
^
prog.cpp: In member function 'void Player::tick(int)':
prog.cpp:8:9: error: 'position' was not declared in this scope
position.tick(deltaTime);
^
prog.cpp:9:9: error: 'radius' was not declared in this scope
radius.tick(deltaTime);
^
prog.cpp:10:9: error: 'color' was not declared in this scope
color.tick(deltaTime);
^
prog.cpp: At global scope:
prog.cpp:15:1: error: 'Animation' does not name a type
Animation<T> *moveBy(const T &initial, const T &delta)
^
prog.cpp:21:1: error: 'Animation' does not name a type
Animation<T> *moveTo(const T &initial, const T &final)
^
prog.cpp:29:1: error: 'player' does not name a type
player.position.animate(moveBy(player.position.value(), sf::Vector2(50.0f, 0.0f)))
^
prog.cpp:31:1: error: 'player' does not name a type
player.color.animate(moveTo(RED_COLOR, WHITE_COLOR));
^
prog.cpp:33:1: error: expected unqualified-id before 'while'
while(...) {
^