Problem | badpotato |
---|---|
User | JoshJuice |
Submission Time | 2025-04-25 10:50:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
badpotato.cpp: In function ‘int main()’:
badpotato.cpp:18:29: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
18 | cout << maxSubarraySum(a, n);
| ^
badpotato.cpp:5:40: note: initializing argument 2 of ‘ll maxSubarraySum(std::vector<long long int>&, ll&)’
5 | ll maxSubarraySum(vector<ll> &arr, ll &n) {
| ~~~~^