Borderou de evaluare (job #2815848)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::Darb(std::ofstream&)':
main.cpp:241:9: warning: unused variable 'fLast_dist' [-Wunused-variable]
241 | int fLast_dist = firstLast.second;
| ^~~~~~~~~~
main.cpp: In member function 'void Graph::Kruskal(std::ofstream&)':
main.cpp:496:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
496 | for(int j = 0; j < adj[i].size(); ++j){
| ~~^~~~~~~~~~~~~~~
main.cpp:515:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
515 | for(;i < edges.size() && cnt <= E - 1; ++i){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::bfsFlow(int*, int (*)[500005], int (*)[500005])':
main.cpp:139:21: warning: iteration 500004 invokes undefined behavior [-Waggressive-loop-optimizations]
139 | {vis[i] = false; dad[i] = 0;}
| ~~~~~~~^~~~~~~
main.cpp:138:24: note: within this loop
138 | for(int i = 1; i <= nmax; ++i)
| ~~^~~~~~~
main.cpp:139:21: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 500005 is out of the bounds [0, 500005] of object 'vis' with type 'bool [500005]' [-Warray-bounds]
139 | {vis[i] = false; dad[i] = 0;}
| ~~~~~~~^~~~~~~
main.cpp:137:12: note: 'vis' declared here
137 | bool vis[nmax];
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 32ms | 27574kb | Raspuns corect! | 10 | 10 |
2 | 32ms | 27578kb | Raspuns corect! | 10 | 10 |
3 | 37ms | 27754kb | Raspuns corect! | 10 | 10 |
4 | 75ms | 29159kb | Raspuns corect! | 10 | 10 |
5 | 131ms | 30928kb | Raspuns corect! | 10 | 10 |
6 | 409ms | 37699kb | Raspuns corect! | 10 | 10 |
7 | 132ms | 30810kb | Fisier de iesire corupt! | 0 | 0 |
8 | 539ms | 40960kb | Raspuns corect! | 10 |
9 | 493ms | 40157kb | Raspuns corect! | 10 | 20 |
10 | 654ms | 44138kb | Raspuns corect! | 10 |
Punctaj total | 80 |