Borderou de evaluare (job #2822397)

Utilizator alina225Avram Miruna alina225 Data 23 decembrie 2021 22:25:49
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Graf::dfs(int, std::vector<int>&, int)': main.cpp:139:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 139 | for(i=0;i<adjList[node].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graf::verify(std::vector<int>)': main.cpp:232:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 232 | for(int i=0;i<grades.size();i++){ | ~^~~~~~~~~~~~~~ main.cpp:233:21: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 233 | if(grades[i]>grades.size()-1) main.cpp: In member function 'void Graf::apm(int, std::vector<int>&, std::priority_queue<std::vector<int>, std::vector<std::vector<int> >, compare>&, std::vector<std::pair<int, int> >&, int&)': main.cpp:266:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 266 | for(int i=0;i<adjList_withCost[node].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::Dijkstra(int, std::vector<int>&, std::vector<int>&, std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, compare2>&)': main.cpp:299:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 299 | for(int i=0;i<adjList_withCost[node].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::topo(std::unordered_map<int, int>&, std::vector<int>&, std::queue<int>&)': main.cpp:331:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 331 | for(int i=0;i<adjList[node].size();i++) | ~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void solve_dfs_nrCompConexe()': main.cpp:399:9: warning: unused variable 'i' [-Wunused-variable] 399 | int i,n,m,x,y,nrcomp=0; | ^ main.cpp:399:19: warning: unused variable 'nrcomp' [-Wunused-variable] 399 | int i,n,m,x,y,nrcomp=0; | ^~~~~~ main.cpp: In function 'void solve_Sortaret()': main.cpp:536:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 536 | for(int i=0;i<topo_sort.size();i++) | ~^~~~~~~~~~~~~~~~~ main.cpp: In function 'void solve_DARB()': main.cpp:553:9: warning: unused variable 'last' [-Wunused-variable] 553 | int last; | ^~~~ main.cpp: In function 'void solve_RoyFloyd()': main.cpp:560:11: warning: unused variable 'x' [-Wunused-variable] 560 | int n,x; | ^ main.cpp: In function 'void solve_eulerCycle()': main.cpp:616:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 616 | for(i=0;i<ans.size()-1;i++) | ~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
111ms5292kbOK5
211ms5201kbOK5
311ms5308kbOK5
420ms5566kbOK5
511ms5316kbOK5
611ms5328kbOK5
711ms5296kbOK5
811ms5328kbOK5
911ms5332kbOK5
1011ms5308kbOK5
1139ms6426kbOK5
1230ms6336kbOK5
1344ms6828kbOK5
1449ms6807kbOK5
1558ms7217kbOK5
1672ms7688kbOK5
1797ms13815kbOK5
1810ms5914kbOK5
1915ms6123kbOK5
2082ms8097kbOK5
Punctaj total100

Ceva nu functioneaza?