Borderou de evaluare (job #2508115)

Utilizator Ioan_AnghelIoan Anghel Ioan_Anghel Data 11 decembrie 2019 16:26:18
Problema Asmax Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:12: error: 'M' was not declared in this scope int nr, vf[M], urm[M], lst[N], n, maxi, v[N]; ^ main.cpp:7:20: error: 'M' was not declared in this scope int nr, vf[M], urm[M], lst[N], n, maxi, v[N]; ^ main.cpp: In function 'void adauga(int, int)': main.cpp:15:5: error: 'vf' was not declared in this scope vf[++nr] = y; ^~ main.cpp:15:16: error: 'y' was not declared in this scope vf[++nr] = y; ^ main.cpp:16:5: error: 'urm' was not declared in this scope urm[nr] = lst[x]; ^~~ main.cpp: In function 'void dfs(int)': main.cpp:23:37: error: 'urm' was not declared in this scope for(int p = lst[x]; p != 0; p = urm[p]){ ^~~ main.cpp:24:17: error: 'vf' was not declared in this scope int y = vf[p]; ^~ main.cpp: In function 'int main()': main.cpp:40:5: error: expected ';' before '}' token } ^ main.cpp:44:22: error: 'adaugare' was not declared in this scope adaugare(x, y); ^ Non zero exit status: 1

Ceva nu functioneaza?