Borderou de evaluare (job #3369806)

Utilizator stefiiia.pPopescu Alexandra Stefania stefiiia.p Data 22 octombrie 2026 10:27:52
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:7: error: expected nested-name-specifier before 'namespacestd' 2 | using namespacestd; | ^~~~~~~~~~~~ main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream fin("dfs.in"); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream fout("dfs.out"); | ^~~~~~~~ main.cpp:7:1: error: 'vector' does not name a type 7 | vector <int> L[100001]; | ^~~~~~ main.cpp: In function 'void dfs(int)': main.cpp:12:20: error: 'L' was not declared in this scope 12 | for(auto vec : L[node]){ | ^ main.cpp: In function 'int main()': main.cpp:22:5: error: 'fin' was not declared in this scope; did you mean 'sin'? 22 | fin >> n >> m; | ^~~ | sin main.cpp:27:9: error: 'L' was not declared in this scope 27 | L[a].push_back(b); | ^ Non zero exit status: 1

Ceva nu functioneaza?