Borderou de evaluare (job #703885)

Utilizator avatar Serban_Ilinca_5B Serban Ilinca Serban_Ilinca_5B IP ascuns
Problemă Cifre1 (clasa a 5-a) Compilator cpp-32
Rundă superoji1 Status evaluat
Dată 11 mar. 2023 11:14:16 Scor 30

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:14:11: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 14 | aa[i] = -1; bb[i] = -1; | ~~~~~~^~~~ main.cpp:12:19: note: within this loop 12 | for(int i = 0; i <= 9; i = i + 1){ | ~~^~~~ main.cpp:29:28: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 29 | f[j] = f[j] + (aa[i] == j) + (bb[i] == j); | ~~~~^ main.cpp:28:21: note: within this loop 28 | for(int i = 0; i<=9; i = i + 1){ | ~^~~ main.cpp:14:11: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'aa' with type 'int [9]' [-Warray-bounds] 14 | aa[i] = -1; bb[i] = -1; | ~~~~~~^~~~ main.cpp:7:41: note: 'aa' declared here 7 | int a, b, f[10], fa[10], fb[10], c[10], aa[9], bb[9]; | ^~ main.cpp:14:23: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'bb' with type 'int [9]' [-Warray-bounds] 14 | aa[i] = -1; bb[i] = -1; | ~~~~~~^~~~ main.cpp:7:48: note: 'bb' declared here 7 | int a, b, f[10], fa[10], fb[10], c[10], aa[9], bb[9]; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Raspuns incorect la punctul (b) 5
2 1 ms 245 kb Raspuns incorect la punctul (a) 0
3 1 ms 245 kb Raspuns incorect la punctul (a) 0
4 1 ms 245 kb Raspuns incorect la punctul (a) 0
5 1 ms 245 kb Raspuns incorect la punctul (b) 5
6 1 ms 245 kb Raspuns incorect la punctul (b) 5
7 1 ms 245 kb Raspuns incorect la punctul (a) 0
8 1 ms 245 kb OK 10
9 1 ms 241 kb Raspuns incorect la punctul (a) 0
10 1 ms 245 kb Raspuns incorect la punctul (b) 5
Punctaj total 30