Pagini recente » Borderou de evaluare (job #1793593) | Borderou de evaluare (job #3243460) | Borderou de evaluare (job #2387722) | Borderou de evaluare (job #626522) | Borderou de evaluare (job #2798544)
Borderou de evaluare (job #2798544)
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:119:12: warning: operation on 'poz' may be undefined [-Wsequence-point]
119 | v[ ++poz ] = v[ poz - 1 ] + dp[ Y ];
| ^~~~~
main.cpp:119:12: warning: operation on 'poz' may be undefined [-Wsequence-point]
main.cpp:112:16: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
112 | v[ i ] = INF;
| ^
main.cpp:111:23: note: within this loop
111 | for( int i = 1; i <= MAX_DIR; i++ )
| ^
main.cpp:112:14: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
112 | 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 |
1 | 1ms | 184kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 1ms | 184kb | Incorect | 0 |
4 | 1ms | 184kb | Incorect | 0 |
5 | 1ms | 184kb | Incorect | 0 |
6 | 1ms | 184kb | Incorect | 0 |
7 | 1ms | 184kb | Incorect | 0 |
8 | 1ms | 184kb | Incorect | 0 |
9 | 1ms | 184kb | Incorect | 0 |
10 | 1ms | 184kb | Incorect | 0 |
Punctaj total | 0 |