Borderou de evaluare (job #2798643)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 11 noiembrie 2021 17:30:50
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:46:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 46 | for( int i = 0; i < noduri[ node ].size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:122:16: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 122 | v[ i ] = INF; | ^ main.cpp:121:23: note: within this loop 121 | for( int i = 1; i <= 4; i++ ) | ~~^~~~ main.cpp: In function 'bool valid(int)': main.cpp:72:22: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds] 72 | if( 4 * x - v[ 4 ] >= k ) | ~~~~~^ main.cpp:22:5: note: while referencing 'v' 22 | int v[ MAX_DIR ], n; | ^ main.cpp: In function 'int binary_search()': main.cpp:72:22: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds] 72 | if( 4 * x - v[ 4 ] >= k ) | ~~~~~^ main.cpp:22:5: note: while referencing 'v' 22 | int v[ MAX_DIR ], n; | ^ main.cpp: In function 'int main()': main.cpp:122:14: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds] 122 | 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
11ms184kbIncorect0
22ms204kbIncorect0
32ms184kbIncorect0
42ms184kbIncorect0
51ms184kbIncorect0
62ms184kbIncorect0
71ms184kbIncorect0
81ms184kbIncorect0
91ms184kbIncorect0
101ms184kbIncorect0
Punctaj total0

Ceva nu functioneaza?