I am trying to run a code snippet using openmp, but it gives compile error as there is no initialization in the for loop. The iterator class is defined here. I am not able to figure out how can I initialize inside the for loop.
I am not an expert in C++, so I would appreciate any help.
ntHashIterator itr(seq, h, k);
#pragma omp parallel for
for(; itr != itr.end(); ++itr){
std::cout << (*itr)[0] << std::endl;
}
for (ntHashIterator itr = ntHashIterator(seq, h, k); itr != itr.end(); ++itr)invalid controlling predicateerror. I think the answer below explains that.