| Problem | arraypartition |
|---|---|
| User | IWKR |
| Submission Time | 2026-02-05 23:10:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arraypartition.cpp:41:8: error: redefinition of ‘struct node’
41 | struct node{
| ^~~~
arraypartition.cpp:10:8: note: previous definition of ‘struct node’
10 | struct node{
| ^~~~
arraypartition.cpp: In function ‘int32_t main()’:
arraypartition.cpp:74:8: error: cannot convert ‘node*’ to ‘int*’ in assignment
74 | root2=new node(0,n);
| ^~~~~~~~~~~~~
| |
| node*
arraypartition.cpp:75:9: error: request for member ‘update’ in ‘* root2’, which is of non-class type ‘int’
75 | root2->update(0,0);
| ^~~~~~
arraypartition.cpp:89:17: error: request for member ‘query’ in ‘* root2’, which is of non-class type ‘int’
89 | dp[i]=root2->query(high,i-l);
| ^~~~~
arraypartition.cpp:91:10: error: request for member ‘update’ in ‘* root2’, which is of non-class type ‘int’
91 | root2->update(i,dp[i]);
|