Problem penguinfood
User Hijackedsoul
Submission Time 2024-01-03 22:58:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penguinfood.cpp: In member function ‘void node::update(long long int, long long int)’:
penguinfood.cpp:43:56: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘long long int’ in assignment
43 | val = {l->val + r->val, max(l->val, r->val)}; // update the range sum
| ^
penguinfood.cpp: In function ‘int32_t main()’:
penguinfood.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
penguinfood.cpp:68:3: note: in expansion of macro ‘int’
68 | int a, b;
| ^~~
penguinfood.cpp:69:15: error: ‘a’ was not declared in this scope
69 | std::cin >> a >> b;
| ^
penguinfood.cpp:69:20: error: ‘b’ was not declared in this scope
69 | std::cin >> a >> b;
| ^