| Problem | deda |
|---|---|
| User | xp |
| Submission Time | 2025-11-15 16:39:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
deda.cpp:50:4: error: ISO C++ forbids declaration of ‘root’ with no type [-fpermissive]
50 | }* root;
| ^~~~
deda.cpp:72:1: error: expected ‘}’ at end of input
72 | }
| ^
deda.cpp:7:13: note: to match this ‘{’
7 | struct node {
| ^
deda.cpp: In member function ‘int node::main()’:
deda.cpp:59:9: error: cannot convert ‘node*’ to ‘int*’ in assignment
59 | root = new node(1, n);
| ^~~~~~~~~~~~~~
| |
| node*
deda.cpp:66:10: error: request for member ‘update’ in ‘*((node*)this)->node::root’, which is of non-class type ‘int’
66 | root->update(x, y);
| ^~~~~~
deda.cpp:69:18: error: request for member ‘bs’ in ‘*((node*)this)->node::root’, which is of non-class type ‘int’
69 | cout << root->bs(y, n, x) << '\n';
| ^~
deda.cpp: At global scope:
deda.cpp:72:1: error: expect