you copy map, and it's bad. You can use double operator[], i.e.
```cpp
++type_map[type][time];
```