Borderou de evaluare (job #2500725)

Utilizator TomKodeColev Thomas-Daniel TomKode Data 28 noiembrie 2019 16:22:57
Problema Vila Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:71:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation] {for(int k=0;k<=2;k++) ^~~ main.cpp:74:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(v[3]!=v[2]) ^~ main.cpp:72:23: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] if(v[k]!=v[k+1]) ~~~~~^ main.cpp:71:19: note: within this loop {for(int k=0;k<=2;k++) ~^~~ main.cpp:66:8: warning: array subscript is above array bounds [-Warray-bounds] v[3]=a[i][j+1]; ~~~^ main.cpp:68:39: warning: array subscript is above array bounds [-Warray-bounds] if(v[0]==v[1] && v[1]==v[2] && v[3]==v[2]) ~~~^ main.cpp:74:15: warning: array subscript is above array bounds [-Warray-bounds] if(v[3]!=v[2]) ~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms131kbIncorect0
35ms655kbIncorect0
44ms524kbIncorect0
55ms393kbIncorect0
64ms262kbOK10
74ms393kbIncorect0
82ms262kbOK10
94ms262kbOK10
104ms655kbOK10
Punctaj total50

Ceva nu functioneaza?