Problem | segmenttree |
---|---|
User | Reverberate |
Submission Time | 2023-06-06 22:32:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:8:31: error: declaration of ‘arr’ as array of references
8 | node(int S_, int E_, int &arr[]): start(S_),end(E_),mid((start+end)/2){
| ^~~
segmenttree.cpp: In constructor ‘node::node(...)’:
segmenttree.cpp:8:45: error: ‘S_’ was not declared in this scope
8 | node(int S_, int E_, int &arr[]): start(S_),end(E_),mid((start+end)/2){
| ^~
segmenttree.cpp:8:53: error: ‘E_’ was not declared in this scope
8 | node(int S_, int E_, int &arr[]): start(S_),end(E_),mid((start+end)/2){
| ^~
segmenttree.cpp:10:21: error: ‘arr’ was not declared in this scope
10 | value = arr[start];
| ^~~
segmenttree.cpp:13:37: error: ‘arr’ was not declared in this scope
13 | ln = new node(start,mid,arr);
|