Borderou de evaluare (job #598819)

Utilizator avatar Lupascu Lupascu Calin Lupascu IP ascuns
Problemă Clasa1 Compilator cpp-32
Rundă lasm_20_05_2021_cl11 Status evaluat
Dată 20 mai 2021 14:41:35 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:15: error: 'NMAX' was not declared in this scope 19 | long long dif[NMAX + 1]; | ^~~~ main.cpp:20:7: error: 'NMAX' was not declared in this scope 20 | int v[NMAX]; | ^~~~ main.cpp: In function 'long long int dinamica(int)': main.cpp:35:9: error: 'dif' was not declared in this scope; did you mean 'div'? 35 | s = dif[1] + dif[2]; | ^~~ | div main.cpp: In function 'void reset(int)': main.cpp:46:9: error: 'dif' was not declared in this scope; did you mean 'div'? 46 | dif[m] = 0; | ^~~ | div main.cpp: In function 'int main()': main.cpp:57:5: error: 'v' was not declared in this scope 57 | v[0] = numar(); | ^ main.cpp:67:13: error: 'dif' was not declared in this scope; did you mean 'div'? 67 | dif[m++] = modul( v[i - 1] - v[i] ); | ^~~ | div main.cpp:69:13: error: 'dif' was not declared in this scope; did you mean 'div'? 69 | dif[m++] = modul( v[i] - v[i + 1] ); | ^~~ | div