Borderou de evaluare (job #2784646)

Utilizator KarinaDKarina Dumitrescu KarinaD Data 16 octombrie 2021 22:47: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 1 is outside array bounds of 'int [0]' [-Warray-bounds] 22 | q[ 1 ] = r[ 1 ] = v[ 1 ]; | ~~~~~^ main.cpp:6:21: note: while referencing 'r' 6 | int v[ N ], q[ 0 ], r[ 0 ]; | ^ main.cpp:22:10: warning: array subscript 1 is outside array bounds of 'int [0]' [-Warray-bounds] 22 | q[ 1 ] = r[ 1 ] = v[ 1 ]; | ~~~~~^ 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
31ms184kbIncorect0
45ms307kbIncorect0
55ms299kbIncorect0
610ms434kbIncorect0
715ms512kbIncorect0
810ms360kbIncorect0
917ms643kbIncorect0
1019ms569kbIncorect0
Punctaj total0

Ceva nu functioneaza?