Borderou de evaluare (job #3372798)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:47:22: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | C[N][2] = ps[c]; // cea mai apropiata pozitie din stanga a caracterului c
| ^
main.cpp:48:12: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | ps[c] = N; // actualizam pozitia aceea
| ^
main.cpp:58:29: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | C[i][3] = ps[stocC[i]]; // luam cea mai din dreapta pozitie al caracterului de pe pozitia i
| ~~~~~~~^
main.cpp:59:19: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | ps[stocC[i]] = i; // actualizam pozitia
| ~~~~~~~^
main.cpp:54:15: warning: iteration 199 invokes undefined behavior [-Waggressive-loop-optimizations]
54 | ps[i] = 0;
| ~~~~~~^~~
main.cpp:53:22: note: within this loop
53 | for(int i = 1; i <= 200; ++i) {
| ~~^~~~~~
main.cpp:54:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [800, 803] is out of the bounds [0, 800] of object 'ps' with type 'int [200]' [-Warray-bounds]
54 | ps[i] = 0;
| ~~~~~~^~~
main.cpp:12:5: note: 'ps' declared here
12 | int ps[200];
| ^~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 4 |
| 2 | 0ms | 303kb | OK | 4 |
| 3 | 0ms | 303kb | Incorect | 0 |
| 4 | 0ms | 303kb | OK | 4 |
| 5 | 0ms | 303kb | OK | 4 |
| 6 | 0ms | 303kb | Incorect | 0 |
| 7 | 0ms | 303kb | Incorect | 0 |
| 8 | 0ms | 303kb | Incorect | 0 |
| 9 | 0ms | 557kb | Incorect | 0 |
| 10 | 0ms | 303kb | Incorect | 0 |
| 11 | 0ms | 557kb | OK | 4 |
| 12 | 0ms | 557kb | Incorect | 0 |
| 13 | 0ms | 303kb | Incorect | 0 |
| 14 | 0ms | 303kb | Incorect | 0 |
| 15 | 0ms | 303kb | Incorect | 0 |
| 16 | 0ms | 557kb | Incorect | 0 |
| 17 | 2ms | 2392kb | OK | 4 |
| 18 | 2ms | 2392kb | OK | 4 |
| 19 | 1ms | 819kb | OK | 4 |
| 20 | 3ms | 2392kb | Incorect | 0 |
| 21 | 3ms | 2392kb | Incorect | 0 |
| 22 | 2ms | 1605kb | Incorect | 0 |
| 23 | 2ms | 1343kb | Incorect | 0 |
| 24 | 1ms | 1081kb | Incorect | 0 |
| 25 | 1ms | 1081kb | Incorect | 0 |
| Punctaj total | 32 |