Problem | bucketstacking |
---|---|
User | justin271828 |
Submission Time | 2025-03-07 09:50:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bucketstacking.cpp: In member function ‘int node::bsta(int, int)’:
bucketstacking.cpp:40:19: error: request for member ‘R’ in ‘* std::right’, which is of non-class type ‘std::ios_base&(std::ios_base&)’
40 | else if (right->R <= k && m < x) {
| ^
bucketstacking.cpp:43:18: error: request for member ‘R’ in ‘* std::left’, which is of non-class type ‘std::ios_base&(std::ios_base&)’
43 | else if (left->R <= k) return l->bsta(x, k);
| ^
bucketstacking.cpp: In function ‘int main()’:
bucketstacking.cpp:61:3: error: ‘s’ was not declared in this scope
61 | s.insert(i);
| ^
bucketstacking.cpp:70:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
70 | cout << ans;
| ^~~
| abs
bucketstacking.cpp:71:11: error: expected ‘}’ at end of input
71 | return 0;}
| ^
bucketstacking.cpp:67:27: