Problem fish
User kxd
Submission Time 2024-05-16 17:01:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fish.cpp: In function ‘long long int max_weights(long long int, long long int, std::vector<long long int>, std::vector<long long int>, std::vector<long long int>)’:
fish.cpp:37:2: error: ‘l’ was not declared in this scope
37 | l ans2 = 0;
| ^
fish.cpp:40:8: error: ‘ans2’ was not declared in this scope; did you mean ‘ans’?
40 | else ans2 += w[i];
| ^~~~
| ans
fish.cpp:42:17: error: ‘ans2’ was not declared in this scope; did you mean ‘ans’?
42 | return max(ans,ans2);
| ^~~~
| ans