Borderou de evaluare (job #772398)

Utilizator avatar VladStroica Stroica Vlad Cristian VladStroica IP ascuns
Problemă Butoane (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 apr. 2024 23:48:13 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:24: error: 'INT_MAX' was not declared in this scope 10 | int n,maxim=0,minim=INT_MAX,maxp=0,ok=0,a; | ^~~~~~~ main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <fstream> +++ |+#include <climits> 3 | using namespace std; main.cpp:18:12: error: 'maxp' was not declared in this scope 18 | maxp=i; | ^~~~ main.cpp:23:10: error: 'ok' was not declared in this scope 23 | while(ok==0) | ^~ main.cpp:26:8: error: 'a' was not declared in this scope 26 | a=v[maxp]-minim; | ^ main.cpp:26:12: error: 'maxp' was not declared in this scope 26 | a=v[maxp]-minim; | ^~~~ main.cpp:63:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 63 | for(int i=1;i<=n;i++) | ^~~ main.cpp:65:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 65 | return 0; | ^~~~~~