Borderou de evaluare (job #2784645)

Utilizator KarinaDKarina Dumitrescu KarinaD Data 16 octombrie 2021 22:45:39
Problema Vila 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:19: warning: array subscript 0 is outside array bounds of 'int [0]' [-Warray-bounds] 22 | q[ 0 ] = r[ 0 ] = v[ 0 ]; | ~~~~~^ main.cpp:6:21: note: while referencing 'r' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:22:10: warning: array subscript 0 is outside array bounds of 'int [0]' [-Warray-bounds] 22 | q[ 0 ] = r[ 0 ] = v[ 0 ]; | ~~~~~^ main.cpp:6:13: note: while referencing 'q' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:26:22: warning: array subscript dr is outside array bounds of 'int [0]' [-Warray-bounds] 26 | while( q[ dr ] > v[ i ] && dr >= 0 ) | ~~~~~~^ main.cpp:6:13: note: while referencing 'q' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:29:15: warning: array subscript dr is outside array bounds of 'int [0]' [-Warray-bounds] 29 | q[ dr ] = v[ i ]; | ~~~~~~^ main.cpp:6:13: note: while referencing 'q' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:31:23: warning: array subscript dr1 is outside array bounds of 'int [0]' [-Warray-bounds] 31 | while( r[ dr1 ] < v[ i ] && dr1 >= 0 ) | ~~~~~~~^ main.cpp:6:21: note: while referencing 'r' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:34:16: warning: array subscript dr1 is outside array bounds of 'int [0]' [-Warray-bounds] 34 | r[ dr1 ] = v[ i ]; | ~~~~~~~^ main.cpp:6:21: note: while referencing 'r' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:43:22: warning: array subscript dr is outside array bounds of 'int [0]' [-Warray-bounds] 43 | while( q[ dr ] > v[ i ] && dr >= st ) | ~~~~~~^ main.cpp:6:13: note: while referencing 'q' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:46:15: warning: array subscript dr is outside array bounds of 'int [0]' [-Warray-bounds] 46 | q[ dr ] = v[ i ]; | ~~~~~~^ main.cpp:6:13: note: while referencing 'q' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:48:23: warning: array subscript dr1 is outside array bounds of 'int [0]' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbIncorect0
21ms184kbIncorect0
313ms307kbIncorect0
415ms344kbIncorect0
56ms294kbIncorect0
630ms434kbIncorect0
717ms425kbIncorect0
815ms487kbIncorect0
920ms663kbIncorect0
1026ms569kbIncorect0
Punctaj total0

Ceva nu functioneaza?