| Problem | gohcart2 |
|---|---|
| User | popperoni |
| Submission Time | 2024-12-11 11:37:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gohcart2.cpp: In constructor ‘node::node(long long int, long long int)’:
gohcart2.cpp:30:3: error: ‘val2’ was not declared in this scope; did you mean ‘val’?
30 | val2=0;
| ^~~~
| val
gohcart2.cpp: At global scope:
gohcart2.cpp:4:12: error: expected unqualified-id before ‘long’
4 | #define ll long long
| ^~~~
gohcart2.cpp:56:8: note: in expansion of macro ‘ll’
56 | node (ll s, ll e) {
| ^~
gohcart2.cpp:56:8: error: expected ‘)’ before ‘long’
56 | node (ll s, ll e) {
| ~^
| )
gohcart2.cpp: In function ‘int main()’:
gohcart2.cpp:95:30: error: new initializer expression list treated as compound expression [-fpermissive]
95 | node2 *root2=new node2(0,n-1);
| ^
gohcart2.cpp:95:30: error: no matching function for call to ‘node2::node2(long long int)’
gohcart2.cpp:53:8: note: candidate: ‘node2::node2()’