Borderou de evaluare (job #1746179)

Utilizator marcdariaDaria Marc marcdaria Data 22 august 2016 19:09:53
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:2: error: ‘ifstream’ does not name a type ifstream fin("dfs.in"); ^ user.cpp:5:2: error: ‘ofstream’ does not name a type ofstream fout("dfs.out"); ^ user.cpp:9:2: error: ‘vector’ does not name a type vector <int> v[n_max]; ^ user.cpp: In function ‘void citire()’: user.cpp:13:6: error: ‘fin’ was not declared in this scope fin>>n>>m; ^ user.cpp:18:10: error: ‘v’ was not declared in this scope v[x].push_back(y); ^ user.cpp: In function ‘void dfs(int)’: user.cpp:26:30: error: request for member ‘size’ in ‘viz[nod]’, which is of non-class type ‘int’ for(int i=1;i<=viz[nod].size();++i) ^ user.cpp:27:13: error: ‘v’ was not declared in this scope if(viz[v[nod][i]]==0) ^ user.cpp: In function ‘int main()’: user.cpp:44:6: error: ‘fout’ was not declared in this scope fout<<cnt; ^

Ceva nu functioneaza?