Pagini recente » Borderou de evaluare (job #3343446) | Borderou de evaluare (job #1782699) | Borderou de evaluare (job #1347739) | Borderou de evaluare (job #434517) | Borderou de evaluare (job #3340272)
Borderou de evaluare (job #3340272)
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 |
| 1 | 3ms | 557kb | Incorect | 0 |
| 2 | 4ms | 557kb | Incorect | 0 |
| 3 | 54ms | 561kb | Time limit exceeded | 0 |
| 4 | 14ms | 557kb | Incorect | 0 |
| 5 | 23ms | 557kb | Incorect | 0 |
| 6 | 0ms | 557kb | Incorect | 0 |
| 7 | 0ms | 557kb | Incorect | 0 |
| 8 | 0ms | 557kb | Incorect | 0 |
| 9 | 0ms | 557kb | Incorect | 0 |
| 10 | 4ms | 557kb | Incorect | 0 |
| Punctaj total | 0 |