Borderou de evaluare (job #3340272)

Utilizator PopRadGabPopescu Radu Gabriel PopRadGab Data 13 februarie 2026 13:57:31
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:27:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | if ( ( imax == n - 1 ) || ( imax == 0 ) )//caz particular, cand se ajunge la capat | ^~ main.cpp:49:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 49 | if ( imax == 0 ) | ^~ main.cpp:51:47: warning: array subscript -1 is below array bounds of 'int [100000]' [-Warray-bounds] 51 | 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:54:31: warning: array subscript -1 is below array bounds of 'int [100000]' [-Warray-bounds] 54 | 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:49:13: warning: 'imax' may be used uninitialized [-Wmaybe-uninitialized] 49 | if ( imax == 0 ) | ^~ 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
13ms557kbIncorect0
24ms557kbIncorect0
354ms561kbTime limit exceeded0
414ms557kbIncorect0
523ms557kbIncorect0
60ms557kbIncorect0
70ms557kbIncorect0
80ms557kbIncorect0
90ms557kbIncorect0
104ms557kbIncorect0
Punctaj total0

Ceva nu functioneaza?