Ambil perhatian
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba log masuk atau menukar direktori.
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Missing structured block in an OpenMP '#pragma omp sections' region
Remarks
A sections directive has an empty code block.
Example
The following example generates C3046:
// C3046.cpp
// compile with: /openmp /c
#include "omp.h"
int main() {
int n2 = 2, n3 = 3;
#pragma omp parallel
{
++n2;
#pragma omp sections
{
/*
++n2;
#pragma omp section
{
++n3;
}
*/
} // C3046 uncomment code to resolve this C3046
}
}