Borderou de evaluare (job #2815846)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 10 decembrie 2021 15:04:12
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: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 (*)[100005], int (*)[100005])': main.cpp:139:21: warning: iteration 100004 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 100005 is out of the bounds [0, 100005] of object 'vis' with type 'bool [100005]' [-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
111ms5033kbRaspuns corect!1010
211ms5050kbRaspuns corect!1010
316ms5242kbRaspuns corect!1010
454ms6795kbRaspuns corect!1010
5121ms8843kbRaspuns corect!1010
692ms8011kbKilled by Signal 1100
7116ms8708kbFisier de iesire corupt!00
891ms8691kbKilled by Signal 110
978ms7532kbKilled by Signal 1100
1088ms9056kbKilled by Signal 110
Punctaj total50

Ceva nu functioneaza?