Borderou de evaluare (job #3033126)

Utilizator dragoncrackCandidatu Mario Luca dragoncrack Data 23 martie 2023 13:35: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:8:33: error: 'INT_MIN' was not declared in this scope 8 | int n, x, suma, st, dr, maxim = INT_MIN, stMax, drMax; | ^~~~~~~ main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 1 | #include <fstream> +++ |+#include <climits> 2 | main.cpp: In function 'int main()': main.cpp:22:13: error: 'stMax' was not declared in this scope 22 | stMax = 1; | ^~~~~ main.cpp:23:13: error: 'drMax' was not declared in this scope 23 | drMax = 1; | ^~~~~ main.cpp:39:13: error: 'stMax' was not declared in this scope 39 | stMax = st; | ^~~~~ main.cpp:40:13: error: 'drMax' was not declared in this scope 40 | drMax = dr; | ^~~~~ main.cpp:43:29: error: 'stMax' was not declared in this scope 43 | fout << maxim << " " << stMax << " " << drMax; | ^~~~~ main.cpp:43:45: error: 'drMax' was not declared in this scope 43 | fout << maxim << " " << stMax << " " << drMax; | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?