Pagini recente » Borderou de evaluare (job #121641) | Borderou de evaluare (job #80439) | Borderou de evaluare (job #237992) | Borderou de evaluare (job #2199861) | Borderou de evaluare (job #2823217)
Borderou de evaluare (job #2823217)
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 |
1 | 6ms | 2650kb | Incorect | 0 |
2 | 6ms | 2609kb | Incorect | 0 |
3 | 11ms | 4800kb | OK | 10 |
4 | 10ms | 4730kb | Incorect | 0 |
5 | 25ms | 4911kb | Incorect | 0 |
6 | 44ms | 5214kb | OK | 10 |
7 | 59ms | 5382kb | OK | 10 |
8 | 150ms | 6180kb | OK | 10 |
9 | 92ms | 5730kb | Incorect | 0 |
10 | 255ms | 6787kb | Incorect | 0 |
Punctaj total | 40 |