Borderou de evaluare (job #2823215)

Utilizator IoanaLiviaPopescu15Ioana Livia IoanaLiviaPopescu15 Data 27 decembrie 2021 16:41:19
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::DFS(int)': main.cpp:88:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 88 | for(int i = 0; i < adiacenta[vf].size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::Solve_APM()': main.cpp:272:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 272 | for (int i = 0; i < rezultat.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp:249:15: warning: unused variable 'n1' [-Wunused-variable] 249 | int n, M, n1, n2; | ^~ main.cpp:249:19: warning: unused variable 'n2' [-Wunused-variable] 249 | int n, M, n1, n2; | ^~ main.cpp: In member function 'void Graph::bfs(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<adiacenta[el].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::Solve_Eulerian()': main.cpp:501:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 501 | for(int i = 0; i < output.size() - 1; ++i) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In static member function 'static bool Graph::cuplaj(int, int (&)[100001], int (&)[100001], int (&)[100001], std::vector<int> (&)[100001])': main.cpp:515:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 515 | for (int i = 0; i < a[x].size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:528:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 528 | for (int i = 0; i < a[x].size(); i++) | ~~^~~~~~~~~~~~~ main.cpp: In member function 'void Graph::Solve_Bellmanford()': main.cpp:592:14: warning: 'in_q[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] 592 | if(in_q[x]) return; | ~~~~~~^ main.cpp:598:12: warning: '*((void*)& cnt_q +4)' may be used uninitialized in this function [-Wmaybe-uninitialized] 598 | cnt_q[x]++; | ~~~~~~~^ main.cpp:632:14: warning: 'st' may be used uninitialized in this function [-Wmaybe-uninitialized] 632 | while(dr != st-1) | ~~~^~~~~~~ main.cpp: In member function 'void Graph::Solve_Cuplaj()': main.cpp:581:19: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized] 581 | out << ans << '\n'; | ^~~~ main.cpp: In member function 'void Graph::Solve_Dijkstra()': main.cpp:671:57: warning: 'nr' may be used uninitialized in this function [-Wmaybe-uninitialized] 671 | int n1, n2,x,y,c,vf[Md], nextt[Md],l[Nd],v_cost[Md],nr,n,m,ans[Nd], start = 1; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
16ms2560kbOK55
26ms2572kbOK55
36ms2572kbOK55
46ms2646kbOK55
510ms4767kbOK55
66ms2609kbOK510
710ms4927kbOK5
834ms5287kbOK515
944ms5156kbOK5
1010ms4812kbOK5
1158ms5705kbOK520
12107ms5586kbOK5
1373ms5517kbOK5
14147ms7188kbOK5
15193ms6053kbOK515
16140ms5824kbOK5
1725ms5009kbOK5
18212ms6447kbOK515
19269ms6643kbOK5
2039ms5013kbOK5
Punctaj total100

Ceva nu functioneaza?