0_0_38146293_7068.cpp:5:1: error: expected initializer before 'int'
int n2[M], v[M];
^
0_0_38146293_7068.cpp: In function 'int main()':
0_0_38146293_7068.cpp:11:11: error: 'v' was not declared in this scope
cin >> v[i] >> n2[i];
^
0_0_38146293_7068.cpp:11:19: error: 'n2' was not declared in this scope
cin >> v[i] >> n2[i];
^
0_0_38146293_7068.cpp:15:13: error: 'c2' was not declared in this scope
memset(c2, 0, sizeof(c2));
^
0_0_38146293_7068.cpp:20:26: error: 'n2' was not declared in this scope
for (int j = 0; j <= n2[i] && j * v[i] <= up; j++) {
^
0_0_38146293_7068.cpp:20:39: error: 'v' was not declared in this scope
for (int j = 0; j <= n2[i] && j * v[i] <= up; j++) {
^
|