This website uses cookies and other technology to provide you a more personalized
experience. By
continuing the view of our web-pages you accept the terms of using these files. If you
don't
want your personal data to be processed, please, leave this site.
Learn More →
V787. Wrong variable is probably used in the for operator as an index.
The analyzer detected a loop counter used as an index in the loop termination condition. Such code looks suspicious.
Consider the following example:
for (int i = 0; i < n; ++i)
for (int j = 0; j < arr[j]; ++j)
....
The programmer must have intended to use the variable 'i' instead of 'j':
for (int i = 0; i < n; ++i)
for (int j = 0; j < arr[i]; ++j)
....