On the previous comment, remove the ```vetoPatterns.push_back(..);``` lines. Those were a cut-n-paste error. All you want is
```
static const std::vector<unsigned> vetoPatterns = { 5, 7, 9, 10,11,13,14,15};
```