Borderou de evaluare (job #3143579)

Utilizator maryyMaria Ciutea maryy Data 31 iulie 2023 15:55:52
Problema Trandafiri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:14: error: 'INT_MAX' was not declared in this scope 8 | int mini=INT_MAX, maxi=0, x, n; | ^~~~~~~ main.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 1 | #include <fstream> +++ |+#include <climits> 2 | main.cpp:9:9: error: 'n' was not declared in this scope; did you mean 'in'? 9 | in>>n; | ^ | in main.cpp:12:13: error: 'x' was not declared in this scope 12 | in>>x; | ^ main.cpp:15:14: error: 'maxi' was not declared in this scope 15 | if(x>maxi) | ^~~~ main.cpp:18:10: error: 'maxi' was not declared in this scope 18 | out<<maxi-mini+(n-1); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?