Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 713 Bytes

compiler-error-c3016.md

File metadata and controls

34 lines (29 loc) · 713 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3016
Compiler Error C3016
11/04/2016
C3016
C3016
3423467e-e8bb-4f35-b4db-7925cafa74c1

Compiler Error C3016

'var' : index variable in OpenMP 'for' statement must have signed integral type

The index variable in an OpenMP for statement must be a signed integral type.

The following sample generates C3016:

// C3016.cpp
// compile with: /openmp
int main()
{
   #pragma omp parallel
   {
      unsigned int i = 0;
      // Try the following line instead:
      // int i = 0;

      #pragma omp for
      for (i = 0; i <= 10; ++i)   // C3016
      {
      }
   }
}