Borderou de evaluare (job #3253427)

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

Raport evaluator

Eroare de compilare: main.cpp: In function 'int solve1(int, int)': main.cpp:31:44: error: 'INT_MIN' was not declared in this scope 31 | 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 | main.cpp:35:9: error: 'max2' was not declared in this scope; did you mean 'max1'? 35 | max2 = max(max2, v[i]); | ^~~~ | max1 main.cpp:37:9: error: 'maxf' was not declared in this scope; did you mean 'max1'? 37 | maxf = max(maxf, ans[i] + update[i]); | ^~~~ | max1 main.cpp:38:26: error: 'max2' was not declared in this scope; did you mean 'max1'? 38 | return max(max(max1, max2), maxf); | ^~~~ | max1 main.cpp:38:33: error: 'maxf' was not declared in this scope; did you mean 'max1'? 38 | return 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?