Borderou de evaluare (job #3368563)

Utilizator Andreea345Vaduva Andreea Andreea345 Data 15 octombrie 2026 08:31:20
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:1: error: expected ',' or ';' before 'const' 6 | const int NMAX=1e5; | ^~~~~ main.cpp:7:15: error: 'NMAX' was not declared in this scope 7 | vector<int> L[NMAX+1]; | ^~~~ main.cpp:9:8: error: 'NMAX' was not declared in this scope 9 | int vs[NMAX+1]; | ^~~~ main.cpp: In function 'void dfs(int)': main.cpp:12:5: error: 'vs' was not declared in this scope 12 | vs[node]=1; | ^~ main.cpp:13:18: error: 'L' was not declared in this scope 13 | for(auto vec:L[node]){ | ^ main.cpp: In function 'int main()': main.cpp:26:9: error: 'L' was not declared in this scope 26 | L[x].push_back(y); | ^ main.cpp:31:12: error: 'vs' was not declared in this scope 31 | if(vs[i]==0){ | ^~ Non zero exit status: 1

Ceva nu functioneaza?