Problem consistency
User Potato3218
Submission Time 2023-02-10 15:11:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

consistency.cpp: In function ‘long long int check()’:
consistency.cpp:37:16: error: ‘a’ was not declared in this scope
37 | root->update(a[i], 1);
| ^
consistency.cpp: In function ‘int main()’:
consistency.cpp:49:3: error: ‘a’ was not declared in this scope
49 | a[A]++;
| ^
consistency.cpp:54:4: error: ‘a’ was not declared in this scope
54 | a[_a[p[i]]]--;
| ^