Borderou de evaluare (job #2798843)
Utilizator | Data | 11 noiembrie 2021 23:31:03 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int DAC(int, int, int&, int&)':
main.cpp:14:122: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
14 | long long mid=(l+r)/2, maxleft = -LONG_MAX, maxright = -LONG_MAX, x, y, sol = DAC(l, mid, i, j), s = DAC(mid + 1, r, x, y);
| ^
main.cpp:6:34: note: initializing argument 3 of 'long long int DAC(int, int, int&, int&)'
6 | long long DAC(int l, int r, int &i, int &j)
| ~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !