Borderou de evaluare (job #3148657)

Utilizator Tudor_11Tudor Ioan Calin Tudor_11 Data 3 septembrie 2023 09:50:06
Problema Litere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:31:26: warning: array subscript -14 is below array bounds of 'int [26]' [-Warray-bounds] 31 | if(w[v[i]-141]>w[v[i+1]-141]) | ~~~~~~~~~~^ main.cpp:9:9: note: while referencing 'w' 9 | int w[26]{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26}; | ^ main.cpp:31:40: warning: array subscript -14 is below array bounds of 'int [26]' [-Warray-bounds] 31 | if(w[v[i]-141]>w[v[i+1]-141]) | ~~~~~~~~~~~~^ main.cpp:9:9: note: while referencing 'w' 9 | int w[26]{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26}; | ^ main.cpp:23:26: warning: array subscript -14 is below array bounds of 'int [26]' [-Warray-bounds] 23 | if(w[v[i]-141]>w[v[i+1]-141]) | ~~~~~~~~~~^ main.cpp:9:9: note: while referencing 'w' 9 | int w[26]{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26}; | ^ main.cpp:23:40: warning: array subscript -14 is below array bounds of 'int [26]' [-Warray-bounds] 23 | if(w[v[i]-141]>w[v[i+1]-141]) | ~~~~~~~~~~~~^ main.cpp:9:9: note: while referencing 'w' 9 | int w[26]{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26}; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
20ms303kbIncorect00
30ms303kbIncorect00
40ms303kbIncorect00
50ms303kbOK100
60ms303kbIncorect0
754ms303kbTime limit exceeded0
854ms303kbTime limit exceeded0
954ms303kbTime limit exceeded0
1054ms303kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?