Borderou de evaluare (job #2501970)

Utilizator kodama cheama alex koda Data 30 noiembrie 2019 12:15:54
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:18: warning: integer overflow in expression [-Woverflow] const int M = 2*N*(N-1); ~~~^~~~~~ main.cpp:7:19: error: overflow in constant expression int lst[N], vf[2*M], urm[2*M], n, nr; ^ main.cpp:7:19: error: size of array 'vf' is too large main.cpp:7:29: error: overflow in constant expression int lst[N], vf[2*M], urm[2*M], n, nr; ^ main.cpp:7:29: error: size of array 'urm' is too large main.cpp: In function 'void adauga(int, int)': main.cpp:11:5: error: 'vf' was not declared in this scope vf[++nr] = y; ^~ main.cpp:12:5: error: 'urm' was not declared in this scope urm[nr] = lst[x]; ^~~ main.cpp: In function 'void dfs(int)': main.cpp:18:39: error: 'urm' was not declared in this scope for ( int p = lst[x]; p != 0; p = urm[p] ) { ^~~ main.cpp:19:17: error: 'vf' was not declared in this scope int y = vf[p]; ^~ Non zero exit status: 1

Ceva nu functioneaza?