Borderou de evaluare (job #3253423)

Utilizator RaresStanStan Rares RaresStan Data 2 noiembrie 2024 16:19:32
Problema Mit Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve1(int, int)': main.cpp:33:44: error: 'INT_MIN' was not declared in this scope 33 | int bkt1 = br(l), bkt2 = bl(r), max1 = INT_MIN, max2 = INT_MIN, maxf = INT_MIN; | ^~~~~~~ main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <cmath> +++ |+#include <climits> 3 | using namespace std; main.cpp:37:9: error: 'max2' was not declared in this scope; did you mean 'max1'? 37 | max2 = max(max2, v[i]); | ^~~~ | max1 main.cpp:39:9: error: 'maxf' was not declared in this scope; did you mean 'max1'? 39 | maxf = max(maxf, ans[i] + update[i]); | ^~~~ | max1 main.cpp:40:27: error: 'max2' was not declared in this scope; did you mean 'max1'? 40 | cout << max(max(max1, max2), maxf); | ^~~~ | max1 main.cpp:40:34: error: 'maxf' was not declared in this scope; did you mean 'max1'? 40 | cout << max(max(max1, max2), maxf); | ^~~~ | max1 main.cpp: In function 'int main()': main.cpp:55:16: error: 'INT_MIN' was not declared in this scope 55 | int maxx = INT_MIN; | ^~~~~~~ main.cpp:55:16: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?