Borderou de evaluare (job #2762113)
Utilizator | Data | 5 iulie 2021 16:26:20 | |
---|---|---|---|
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 'int main()':
main.cpp:13:16: error: 'INT_MIN' was not declared in this scope
int max_val = INT_MIN, start_pos = 1, end_pos = 1;
^~~~~~~
main.cpp:16:111: error: 'start_pos' was not declared in this scope
if ((partial_sum[i] - partial_sum[j] > max_val) || (partial_sum[i] - partial_sum[j] == max_val && (j + 1 < start_pos || (j + 1 == start_pos && i - j < end_pos - start_pos + 1)))) {
^~~~~~~~~
main.cpp:16:155: error: 'end_pos' was not declared in this scope
if ((partial_sum[i] - partial_sum[j] > max_val) || (partial_sum[i] - partial_sum[j] == max_val && (j + 1 < start_pos || (j + 1 == start_pos && i - j < end_pos - start_pos + 1)))) {
^~~~~~~
main.cpp:23:28: error: 'start_pos' was not declared in this scope
fout << max_val << " " << start_pos << " " << end_pos;
^~~~~~~~~
main.cpp:23:48: error: 'end_pos' was not declared in this scope
fout << max_val << " " << start_pos << " " << end_pos;
^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !