use openmp in iterating over a map
<p>I'm trying to iterate over a map in c++ using openMP, but I got three error messages saying<br>
that the  initialization, termination and increment of my loop has improper form and I'm quite   new in using openmp, so is there any way to get around this problem while getting the same  results as the serial ones? the following is the code I used</p>

<pre><code>map&lt; int,string &gt;::iterator datIt;
#pragma omp parallel for
for(datIt=dat.begin();datIt!=dat.end();datIt++) //construct the distance matrix
{
...............
}
</code></pre>
