0
To fix this error, you should move the template declaration outside the class definition and place it before the class definition. In other words, replace the template declaration in line 210 with the following:
template<typename K, typename V> class interval_map { // ... };