नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'var' : type of variable in 'reduction' clause is incompatible with reduction operator 'operator'
Remarks
A variable in a reduction clause cannot be used with the reduction operator.
Example
The following example generates C3040:
// C3040.cpp
// compile with: /openmp /c
#include "omp.h"
double d;
int main() {
#pragma omp parallel reduction(&:d) // C3040
;
#pragma omp parallel reduction(-:d) // OK
;
}