bubblesort2.cpp: In function 'void sub2::solve()':
bubblesort2.cpp:34:27: error: 'x' was not declared in this scope
34 | a[x[i]] = v[i];
| ^
bubblesort2.cpp:34:29: error: 'i' was not declared in this scope
34 | a[x[i]] = v[i];
| ^
bubblesort2.cpp:34:35: error: 'v' was not declared in this scope
34 | a[x[i]] = v[i];
| ^
bubblesort2.cpp: In function 'int main()':
bubblesort2.cpp:73:24: error: 'x' was not declared in this scope
73 | cin >> x[i] >> v[i], ++x[i];
| ^
bubblesort2.cpp:73:32: error: 'v' was not declared in this scope
73 | cin >> x[i] >> v[i], ++x[i];
| ^
bubblesort2.cpp:76:67: error: 'v' was not declared in this scope
76 | else if (max(*max_element(a + 1, a + n + 1), *max_element(v, v + q)) <= 100)
| ^
bubblesort2.cpp:64:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
64 | freopen(Task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bubblesort2.cpp:65:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
65 | freopen(Task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~