Pagini recente » Borderou de evaluare (job #952733) | Borderou de evaluare (job #218347) | Borderou de evaluare (job #685504) | Borderou de evaluare (job #3350130) | Borderou de evaluare (job #3340274)
Borderou de evaluare (job #3340274)
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 |
| 1 | 2ms | 557kb | Incorect | 0 |
| 2 | 4ms | 557kb | Incorect | 0 |
| 3 | 52ms | 557kb | Time limit exceeded | 0 |
| 4 | 14ms | 557kb | Incorect | 0 |
| 5 | 19ms | 557kb | Incorect | 0 |
| 6 | 0ms | 557kb | Incorect | 0 |
| 7 | 0ms | 557kb | Incorect | 0 |
| 8 | 0ms | 561kb | Incorect | 0 |
| 9 | 0ms | 602kb | Incorect | 0 |
| 10 | 6ms | 557kb | Incorect | 0 |
| Punctaj total | 0 |