Borderou de evaluare (job #3172323)

Utilizator sumithesumSumurduc Alexandru sumithesum Data 20 noiembrie 2023 14:56:32
Problema Camionas Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In constructor 'Graph::Graph(int, int, int)': main.cpp:15:18: warning: 'Graph::drumuri' will be initialized after [-Wreorder] 15 | vector<drum> drumuri; | ^~~~~~~ main.cpp:14:17: warning: 'std::vector<int> Graph::d' [-Wreorder] 14 | vector<int> d,tata; | ^ main.cpp:18:5: warning: when initialized here [-Wreorder] 18 | Graph(int n , int m , int g): n(n), m(m),greutate(g),drumuri(n+1),d(n+1,INT_MAX),tata(n+1,0),vizitat(n+1,false){ | ^~~~~ main.cpp: In member function 'void Graph::Dkstra()': main.cpp:54:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if(d[u] + aux.g < d[aux.y]) | ^~ main.cpp:56:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 56 | tata[aux.y] = u; | ^~~~ main.cpp:56:37: warning: 'u' may be used uninitialized [-Wmaybe-uninitialized] 56 | tata[aux.y] = u; main.cpp:44:13: note: 'u' was declared here 44 | int u; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
29ms397kbKilled by Signal 110
39ms425kbKilled by Signal 110
49ms483kbKilled by Signal 110
510ms532kbKilled by Signal 110
611ms794kbKilled by Signal 110
710ms1171kbKilled by Signal 110
813ms1019kbKilled by Signal 110
919ms1421kbKilled by Signal 110
1019ms1429kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?