Borderou de evaluare (job #2815852)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 10 decembrie 2021 15:10:26
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::Darb(std::ofstream&)': main.cpp:242:9: warning: unused variable 'fLast_dist' [-Wunused-variable] 242 | int fLast_dist = firstLast.second; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::Kruskal(std::ofstream&)': main.cpp:497: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] 497 | for(int j = 0; j < adj[i].size(); ++j){ | ~~^~~~~~~~~~~~~~~ main.cpp:516:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 516 | for(;i < edges.size() && cnt <= E - 1; ++i){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'bool Graph::bfsFlow(int*, int (*)[500005], int (*)[500005])': main.cpp:140:21: warning: iteration 500004 invokes undefined behavior [-Waggressive-loop-optimizations] 140 | {vis[i] = false; dad[i] = 0;} | ~~~~~~~^~~~~~~ main.cpp:139:24: note: within this loop 139 | for(int i = 1; i <= nmax; ++i) | ~~^~~~~~~ main.cpp:140: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] 140 | {vis[i] = false; dad[i] = 0;} | ~~~~~~~^~~~~~~ main.cpp:138:12: note: 'vis' declared here 138 | bool vis[nmax]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
131ms27574kbRaspuns corect!1010
232ms27578kbRaspuns corect!1010
336ms27754kbRaspuns corect!1010
475ms29167kbRaspuns corect!1010
5132ms30924kbRaspuns corect!1010
6412ms37675kbRaspuns corect!1010
7132ms30818kbFisier de iesire corupt!00
8540ms40960kbRaspuns corect!10
9492ms40148kbRaspuns corect!1020
10653ms44113kbRaspuns corect!10
Punctaj total80

Ceva nu functioneaza?