Borderou de evaluare (job #3208929)

Utilizator david_diacDavid Tudor Diac david_diac Data 1 martie 2024 15:55:10
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:10: error: 'INT_MIN' was not declared in this scope 5 | int sMax=INT_MIN,s,raspst,raspdr,stanga,n,x; | ^~~~~~~ main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 1 | #include <fstream> +++ |+#include <climits> 2 | using namespace std; main.cpp: In function 'int main()': main.cpp:8:10: error: 'n' was not declared in this scope 8 | cin>>n; | ^ main.cpp:11:14: error: 'x' was not declared in this scope 11 | cin>>x; | ^ main.cpp:12:12: error: 's' was not declared in this scope 12 | if(s<0) | ^ main.cpp:15:13: error: 'stanga' was not declared in this scope 15 | stanga=i; | ^~~~~~ main.cpp:21:12: error: 's' was not declared in this scope 21 | if(s>sMax) | ^ main.cpp:24:13: error: 'raspdr' was not declared in this scope 24 | raspdr=i; | ^~~~~~ main.cpp:25:13: error: 'raspst' was not declared in this scope 25 | raspst=stanga; | ^~~~~~ main.cpp:25:20: error: 'stanga' was not declared in this scope 25 | raspst=stanga; | ^~~~~~ main.cpp:28:22: error: 'raspst' was not declared in this scope 28 | cout<<sMax<<' '<<raspst<<' '<<raspdr; | ^~~~~~ main.cpp:28:35: error: 'raspdr' was not declared in this scope 28 | cout<<sMax<<' '<<raspst<<' '<<raspdr; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?