Problem | segmenttree |
---|---|
User | Mimikyu |
Submission Time | 2024-02-17 14:14:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In function ‘int process(int, int)’:
segmenttree.cpp:5:12: error: ‘min’ was not declared in this scope
5 | return(min(a,b));
| ^~~
segmenttree.cpp: At global scope:
segmenttree.cpp:10:10: error: ‘NULL’ was not declared in this scope
10 | node *l=NULL,*r=NULL;
| ^~~~
segmenttree.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | #define DEFAULT_VALUE 2e9
segmenttree.cpp:10:18: error: ‘NULL’ was not declared in this scope
10 | node *l=NULL,*r=NULL;
| ^~~~
segmenttree.cpp:10:18: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
segmenttree.cpp: In member function ‘void node::update(int, int, int, int)’:
segmenttree.cpp:22:16: error: ‘NULL’ was not declared in this scope
22 | if(l==NULL)l=new node