Should be:
```c++
size_t totalPoints() const;
```