doll.cpp:11:16: error: conflicting declaration 'std::vector<long long int> X'
11 | vector <ll> C, X, Y;
| ^
doll.cpp:10:6: note: previous declaration as 'bool X [400000]'
10 | bool X[400000];
| ^
doll.cpp: In function 'long long int solve(long long int, long long int)':
doll.cpp:14:5: error: request for member 'push_back' in 'X', which is of non-class type 'bool [400000]'
14 | X.push_back(-1);
| ^~~~~~~~~
doll.cpp:13:18: warning: unused variable 'chl' [-Wunused-variable]
13 | ll id = cnt++, chl, chr, mid = (l+r)/2;
| ^~~
doll.cpp:13:23: warning: unused variable 'chr' [-Wunused-variable]
13 | ll id = cnt++, chl, chr, mid = (l+r)/2;
| ^~~
doll.cpp: In function 'void get(long long int)':
doll.cpp:29:8: error: 'B' was not declared in this scope
29 | if (!B[x]) {
| ^
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:59:10: error: could not convert 'C' from 'vector<long long int>' to 'vector<int>'
59 | answer(C, X, Y);
| ^
| |
| vector<long long int>