Problem gerrymandering
User Pan
Submission Time 2024-02-22 13:31:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gerrymandering.cpp: In function ‘int main()’:
gerrymandering.cpp:104:20: error: ‘dead’ was not declared in this scope
104 | ans=max(ans,min(k-dead,sum));
| ^~~~
gerrymandering.cpp:104:25: error: ‘sum’ was not declared in this scope
104 | ans=max(ans,min(k-dead,sum));
| ^~~