Borderou de evaluare (job #3147230)

Utilizator maryyMaria Ciutea maryy Data 24 august 2023 22:54:31
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:20: error: 'LLONG_MAX' was not declared in this scope 8 | long long mini=LLONG_MAX, maxi=0, x, n; | ^~~~~~~~~ main.cpp:2:1: note: 'LLONG_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?