for loop - Cilk error expected ‘)’ before ‘;’ token -


i try compile programme using cilk don't works

g++ -std=c++11 -fcilkplus -lcilkrts -ldl -o2 src/cpp/* -o bin/exe   src/cpp/sous_monoide.cpp: dans la fonction  src/cpp/sous_monoide.cpp:269:19: erreur : expected ‘)’ before ‘;’ token cilk_for (i = 0; < limite; i++){                ^ src/cpp/sous_monoide.cpp:269:36: erreur : expected ‘;’ before ‘)’ token cilk_for (i = 0; < limite; i++){                                 ^ src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input  }  ^ src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input 

this code :

const int limite = n-1; int i; cilk_for (i = 0; < limite; i++){   .... } 

thanks help

did include cilk/cilk.h ?

#include <cilk/cilk.h> 

cilk_for defined in header file. alternatively, can use _cilk_for without including header.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -