Borderou de evaluare (job #3340275)

Utilizator PopRadGabPopescu Radu Gabriel PopRadGab Data 13 februarie 2026 13:59:40
Problema Oo Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:52:47: warning: array subscript -1 is below array bounds of 'int [100000]' [-Warray-bounds] 52 | if ( (v[imax + 1] > v[imax - 1] ) && (v[imax + 1] != -1) ) | ~~~~~~~~~~^ main.cpp:8:12: note: while referencing 'v' 8 | int n, v[100000] = {0}, s = 0, ok = 0, maxim = -1, imax; | ^ main.cpp:55:31: warning: array subscript -1 is below array bounds of 'int [100000]' [-Warray-bounds] 55 | v[imax - 1] = -1; | ~~~~~~~~~~^ main.cpp:8:12: note: while referencing 'v' 8 | int n, v[100000] = {0}, s = 0, ok = 0, maxim = -1, imax; | ^ main.cpp:31:37: warning: 'imax' may be used uninitialized [-Wmaybe-uninitialized] 31 | if ( (v[0] > v[imax - 1] ) && (v[0] != -1) ) | ~~~~~^~~ main.cpp:8:56: note: 'imax' was declared here 8 | int n, v[100000] = {0}, s = 0, ok = 0, maxim = -1, imax; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms557kbIncorect0
24ms561kbIncorect0
352ms557kbTime limit exceeded0
414ms557kbIncorect0
523ms557kbIncorect0
60ms557kbIncorect0
70ms557kbIncorect0
80ms557kbIncorect0
90ms557kbIncorect0
104ms557kbIncorect0
Punctaj total0

Ceva nu functioneaza?