Borderou de evaluare (job #1705463)

Utilizator alex95panPandelea Alexandru alex95pan Data 20 mai 2016 17:21:44
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:1: error: ‘vector’ does not name a type vector<int> g[100001]; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:12:31: error: ‘g’ was not declared in this scope for (unsigned int i = 0; i < g[ind].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:37:5: error: ‘fstream’ was not declared in this scope fstream f, out; ^ user.cpp:37:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/iosfwd:163:33: note: ‘std::fstream’ typedef basic_fstream<char> fstream; ^ user.cpp:37:13: error: expected ‘;’ before ‘f’ fstream f, out; ^ user.cpp:38:2: error: ‘f’ was not declared in this scope f.open("dfs.in", ios::in); ^ user.cpp:38:19: error: ‘ios’ has not been declared f.open("dfs.in", ios::in); ^ user.cpp:39:2: error: ‘out’ was not declared in this scope out.open("dfs.out", ios::out); ^ user.cpp:39:22: error: ‘ios’ has not been declared out.open("dfs.out", ios::out); ^ user.cpp:41:10: error: ‘n’ was not declared in this scope f >> n >> m; ^ user.cpp:41:15: error: ‘m’ was not declared in this scope f >> n >> m; ^ user.cpp:48:3: error: ‘g’ was not declared in this scope g[x].push_back(y); ^

Ceva nu functioneaza?