/* Compile with -fopenmp */
#include <stdio.h>
int main(int argc, char** argv){
long x = 0;
#pragma omp parallel for
for (int i=0; i<10000; i++){
x++;
}
printf("x = %ld\n", x);
}
/* Compile with -fopenmp */
#include <stdio.h>
int main(int argc, char** argv){
long x = 0;
#pragma omp parallel for
for (int i=0; i<10000; i++){
x++;
}
printf("x = %ld\n", x);
}