Borderou de evaluare (job #2822296)

Utilizator 6kmeleon6Luca Cordus 6kmeleon6 Data 23 decembrie 2021 19:49:13
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:42:10: error: redefinition of 'std::ifstream in' 42 | ifstream in("royfloyd.in"); | ^~ main.cpp:14:10: note: 'std::ifstream in' previously declared here 14 | ifstream in("dfs.in"); | ^~ main.cpp:43:10: error: redefinition of 'std::ofstream out' 43 | ofstream out("royfloyd.out"); | ^~~ main.cpp:15:10: note: 'std::ofstream out' previously declared here 15 | ofstream out("dfs.out"); | ^~~ main.cpp: In member function 'void Graf::BFS()': main.cpp:149:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 149 | for(int j = 0; j < adiac[nod].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::nma_nivel(int, int, std::vector<std::vector<int> >&, std::vector<int>&, std::vector<int>&, std::stack<int>&, int&, std::vector<int>&)': main.cpp:193:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 193 | for(int i = 0; i < adiac[k].size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::Biconex()': main.cpp:243:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 243 | for(int j = 0; j < componente_bi[i].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::CTC()': main.cpp:294:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 294 | for(int j = 0; j <componente_tc[i].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::nma_nivel_CC(int, int, std::vector<int>&, std::vector<int>&, int&, std::vector<int>&)': main.cpp:324:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 324 | for(int i = 0; i < adiac[k].size(); i++) | ~~^~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?