Borderou de evaluare (job #2873792)

Utilizator MihneaC240CURCA MIHAI MIHNEA MihneaC240 Data 19 martie 2022 11:40:13
Problema Tarabe 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:14:23: error: 'LONG_MAX' was not declared in this scope 14 | long long st=0,dr=LONG_MAX,mij,cnt,s; | ^~~~~~~~ main.cpp:3:1: note: 'LONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <fstream> +++ |+#include <climits> 3 | using namespace std; main.cpp:16:9: error: 'mij' was not declared in this scope 16 | mij=(st+dr)/2; | ^~~ main.cpp:17:9: error: 'cnt' was not declared in this scope; did you mean 'int'? 17 | cnt=0; s=0; | ^~~ | int main.cpp:17:16: error: 's' was not declared in this scope; did you mean 'st'? 17 | cnt=0; s=0; | ^ | st main.cpp:26:5: error: 's' was not declared in this scope; did you mean 'st'? 26 | s+=(k-cnt)*mij; | ^ | st main.cpp:26:11: error: 'cnt' was not declared in this scope; did you mean 'int'? 26 | s+=(k-cnt)*mij; | ^~~ | int main.cpp:26:16: error: 'mij' was not declared in this scope 26 | s+=(k-cnt)*mij; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?