Borderou de evaluare (job #3368564)

Utilizator daniel.lacatusuLacatusu Daniel daniel.lacatusu Data 15 octombrie 2026 08:33:28
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: 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:8:15: error: 'MAXN' was not declared in this scope 8 | vector<int> L[MAXN]; | ^~~~ main.cpp:9:9: error: 'MAXN' was not declared in this scope 9 | int vis[MAXN]; | ^~~~ main.cpp: In function 'void dfs(int)': main.cpp:11:5: error: 'vis' was not declared in this scope 11 | vis[node] = 1; | ^~~ 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:21:5: error: 'fin' was not declared in this scope 21 | fin >> n >> m; | ^~~ main.cpp:25:9: error: 'L' was not declared in this scope 25 | L[x].push_back(y); | ^ main.cpp:30:12: error: 'vis' was not declared in this scope 30 | if(vis[i] == 0) { | ^~~ main.cpp:35:5: error: 'fout' was not declared in this scope 35 | fout << cc; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?