| Problem | examinations |
|---|---|
| User | YSH2020 |
| Submission Time | 2026-01-02 17:50:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
examinations.cpp: In function ‘int main()’:
examinations.cpp:63:39: error: no matching function for call to ‘node::upd(int&, int)’
63 | root1->upd(a[ptr].first, 1);
| ^
examinations.cpp:23:7: note: candidate: ‘void node::upd(int)’
23 | void upd(int n) {
| ^~~
examinations.cpp:23:7: note: candidate expects 1 argument, 2 provided
examinations.cpp:64:40: error: no matching function for call to ‘node::upd(int&, int)’
64 | root2->upd(a[ptr].second, 1);
| ^
examinations.cpp:23:7: note: candidate: ‘void node::upd(int)’
23 | void upd(int n) {
| ^~~
examinations.cpp:23:7: note: candidate expects 1 argument, 2 provided