0_0_31547790_11554.cpp: In function 'int main()': 0_0_31547790_11554.cpp:47:57: error: 'avg' was not declared in this scope for (int j = i * m; j < (i + 1) * m; j++) if (a[j] < avg[j % m]) flag = false; ^