Borderou de evaluare (job #2798112)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 10 noiembrie 2021 22:05:47
Problema Smart Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'bool flux()': main.cpp:47:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for( i = 0; i < noduri[ node ].size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:126:12: warning: operation on 'poz' may be undefined [-Wsequence-point] 126 | v[ ++poz ] = v[ poz - 1 ] + dp[ Y ]; | ^~~~~ main.cpp:126:12: warning: operation on 'poz' may be undefined [-Wsequence-point] main.cpp:119:16: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 119 | v[ i ] = INF; | ^ main.cpp:118:23: note: within this loop 118 | for( int i = 1; i <= MAX_DIR; i++ ) | ^ main.cpp:119:14: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds] 119 | v[ i ] = INF; | ~~~~~^ main.cpp:22:5: note: while referencing 'v' 22 | int v[ MAX_DIR ], n; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbKilled by Signal 110
21ms184kbIncorect0
31ms184kbIncorect0
41ms184kbKilled by Signal 110
52ms184kbKilled by Signal 110
61ms184kbKilled by Signal 110
71ms184kbKilled by Signal 110
81ms184kbKilled by Signal 110
91ms184kbKilled by Signal 110
101ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?