Borderou de evaluare (job #2815843)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 10 decembrie 2021 14:59:34
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::Darb(std::ofstream&)': main.cpp:240:9: warning: unused variable 'fLast_dist' [-Wunused-variable] 240 | int fLast_dist = firstLast.second; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::Kruskal(std::ofstream&)': main.cpp:495: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] 495 | for(int j = 0; j < adj[i].size(); ++j){ | ~~^~~~~~~~~~~~~~~ main.cpp:514:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 514 | for(;i < edges.size() && cnt <= E - 1; ++i){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'bool Graph::bfsFlow(int*, int (*)[100005], int (*)[100005])': main.cpp:138:21: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations] 138 | {vis[i] = false; dad[i] = 0;} | ~~~~~~~^~~~~~~ main.cpp:137:24: note: within this loop 137 | for(int i = 1; i <= nmax; ++i) | ~~^~~~~~~ main.cpp:138:21: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 100005 is out of the bounds [0, 100005] of object 'vis' with type 'bool [100005]' [-Warray-bounds] 138 | {vis[i] = false; dad[i] = 0;} | ~~~~~~~^~~~~~~ main.cpp:136:12: note: 'vis' declared here 136 | bool vis[nmax]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
111ms4956kbRaspuns corect!1010
211ms5001kbRaspuns corect!1010
316ms5234kbRaspuns corect!1010
454ms6868kbRaspuns corect!1010
5121ms8843kbRaspuns corect!1010
692ms8126kbKilled by Signal 1100
7116ms8712kbFisier de iesire corupt!00
892ms8691kbKilled by Signal 110
977ms7536kbKilled by Signal 1100
1088ms9056kbKilled by Signal 110
Punctaj total50

Ceva nu functioneaza?