Borderou de evaluare (job #3140341)

Utilizator KRISTY06Mateiu Ianis Cristian Vasile KRISTY06 Data 5 iulie 2023 16:13:26
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:18:35: error: 'INT_MIN' was not declared in this scope 18 | int st = 1, end = 1, maxSum = INT_MIN, maxSt = 1, maxEnd = 1; | ^~~~~~~ main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <fstream> +++ |+#include <climits> 3 | using namespace std; main.cpp:25:17: error: 'maxSt' was not declared in this scope; did you mean 'maxSum'? 25 | maxSt = st; | ^~~~~ | maxSum main.cpp:26:17: error: 'maxEnd' was not declared in this scope 26 | maxEnd = end; | ^~~~~~ main.cpp:34:17: error: 'maxSt' was not declared in this scope; did you mean 'maxSum'? 34 | maxSt = st; | ^~~~~ | maxSum main.cpp:35:17: error: 'maxEnd' was not declared in this scope 35 | maxEnd = end; | ^~~~~~ main.cpp:39:30: error: 'maxSt' was not declared in this scope; did you mean 'maxSum'? 39 | fout << maxSum << ' ' << maxSt << ' ' << maxEnd; | ^~~~~ | maxSum main.cpp:39:46: error: 'maxEnd' was not declared in this scope 39 | fout << maxSum << ' ' << maxSt << ' ' << maxEnd; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?