Borderou de evaluare (job #2740010)

Utilizator bubblegumixUdrea Robert bubblegumix Data 10 aprilie 2021 22:19:47
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int max_sum(const int*, int, int)': main.cpp:11:11: error: 'INT_MIN' was not declared in this scope int lmax=INT_MIN, rmax=INT_MIN; ^~~~~~~ main.cpp:26:11: error: 'rmax' was not declared in this scope if (s > rmax) ^~~~ main.cpp:30:20: error: 'rmax' was not declared in this scope return max(lmax + rmax, max(max_sum(a, left, mid), max_sum(a, mid + 1, right))); ^~~~ Non zero exit status: 1

Ceva nu functioneaza?