Problem promotion
User chenweilian
Submission Time 2023-05-31 15:33:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

promotion.cpp:8:1: error: ‘Code’ does not name a type
8 | Code Snippet: BIT (Click to expand)
| ^~~~
promotion.cpp: In function ‘int main()’:
promotion.cpp:34:2: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
34 | dfs(0, -1);
| ^~~
| ffs
promotion.cpp:37:2: error: ‘BIT’ was not declared in this scope
37 | BIT bit(n);
| ^~~
promotion.cpp:43:8: error: ‘bit’ was not declared in this scope
43 | bit.sum(out[a[r].second]) - bit.sum(in[a[r].second] - 1);
| ^~~
promotion.cpp:47:31: error: ‘bit’ was not declared in this scope
47 | for (int j = i; j < r; j++) bit.update(out[a[j].second], 1);
| ^~~