Borderou de evaluare (job #3174499)

Utilizator davidgeo123Georgescu David davidgeo123 Data 24 noiembrie 2023 20:25:44
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:12:18: error: 'INT_MIN' was not declared in this scope 12 | int suma_max=INT_MIN, x, start, stop; | ^~~~~~~ main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 1 | #include <iostream> +++ |+#include <climits> 2 | main.cpp:15:14: error: 'x' was not declared in this scope 15 | cin>>x; | ^ main.cpp:23:13: error: 'start' was not declared in this scope 23 | start=i-nowlen+1; | ^~~~~ main.cpp:24:13: error: 'stop' was not declared in this scope 24 | stop=i; | ^~~~ main.cpp:29:26: error: 'start' was not declared in this scope 29 | cout<<suma_max<<' '<<start<<' '<<stop; | ^~~~~ main.cpp:29:38: error: 'stop' was not declared in this scope 29 | cout<<suma_max<<' '<<start<<' '<<stop; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?