Borderou de evaluare (job #3167429)

Utilizator Antonio_BiscoveanuAntonio Biscoveanu Antonio_Biscoveanu Data 10 noiembrie 2023 18:34:18
Problema Buline Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:23: error: 'INT_MIN' was not declared in this scope 6 | int n,nr,culoare,maxi=INT_MIN,mini=INT_MAX,smin,smax,suma,lmini,lmaxi,poz1,poz1f,poz2,poz2f; | ^~~~~~~ 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:15:9: error: 'suma' was not declared in this scope 15 | suma+=nr; | ^~~~ main.cpp:16:12: error: 'smax' was not declared in this scope 16 | if(smax<0) | ^~~~ main.cpp:19:13: error: 'poz1' was not declared in this scope 19 | poz1=i; | ^~~~ main.cpp:23:12: error: 'smax' was not declared in this scope 23 | if(smax>maxi) | ^~~~ main.cpp:26:13: error: 'poz1f' was not declared in this scope 26 | poz1f=poz1; | ^~~~~ main.cpp:26:19: error: 'poz1' was not declared in this scope 26 | poz1f=poz1; | ^~~~ main.cpp:27:13: error: 'lmaxi' was not declared in this scope; did you mean 'maxi'? 27 | lmaxi=i-poz1+1; | ^~~~~ | maxi main.cpp:29:12: error: 'smin' was not declared in this scope 29 | if(smin>0) | ^~~~ main.cpp:32:13: error: 'poz2' was not declared in this scope 32 | poz2=i; | ^~~~ main.cpp:36:17: error: 'mini' was not declared in this scope 36 | if(smin<mini) | ^~~~ main.cpp:36:12: error: 'smin' was not declared in this scope 36 | if(smin<mini) | ^~~~ main.cpp:39:13: error: 'poz2f' was not declared in this scope 39 | poz2f=i+1; | ^~~~~ main.cpp:40:13: error: 'lmini' was not declared in this scope 40 | lmini=n-i+poz2-1; | ^~~~~ main.cpp:40:23: error: 'poz2' was not declared in this scope 40 | lmini=n-i+poz2-1; Non zero exit status: 1

Ceva nu functioneaza?