Problem eatingparallelograms
User omesh123
Submission Time 2025-06-20 16:32:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:37:30: error: overloaded function with no contextual type information
37 | dp[i] = (max.dp[i], dp[j], blocks[i].second);
| ^~
eatingparallelograms.cpp:37:40: error: ‘j’ was not declared in this scope
37 | dp[i] = (max.dp[i], dp[j], blocks[i].second);
| ^
eatingparallelograms.cpp:41:9: error: ‘maxpower’ was not declared in this scope; did you mean ‘maxPower’?
41 | maxpower = max(maxpower, dp[i]);
| ^~~~~~~~
| maxPower
eatingparallelograms.cpp:44:17: error: ‘maxpower’ was not declared in this scope; did you mean ‘maxPower’?
44 | cout << maxpower << endl;
| ^~~~~~~~
| maxPower