Borderou de evaluare (job #3375380)

Utilizator edw516Cernat Edward Florin edw516 Data 11 noiembrie 2026 17:07:15
Problema Nane Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:65:9: warning: variable 'b1' set but not used [-Wunused-but-set-variable] 65 | int b1 = q(1, 1); | ^~ main.cpp: In function 'void rst()': main.cpp:14:14: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations] 14 | b[i] = 0; | ~~~~~^~~ main.cpp:13:23: note: within this loop 13 | for (int i = 0; i <= 30; i++) | ~~^~~~~ main.cpp:14:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 30 is out of the bounds [0, 30] of object 'b' with type 'bool [30]' [-Warray-bounds] 14 | b[i] = 0; | ~~~~~^~~ main.cpp:8:6: note: 'b' declared here 8 | bool b[30]; | ^ In function 'void rst()', inlined from 'int main()' at main.cpp:51:12: main.cpp:14:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 30 is out of the bounds [0, 30] of object 'b' with type 'bool [30]' [-Warray-bounds] 14 | b[i] = 0; | ~~~~~^~~ main.cpp: In function 'int main()': main.cpp:8:6: note: 'b' declared here 8 | bool b[30]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK1020
20ms303kbOK10
30ms303kbOK1030
40ms307kbOK10
50ms303kbOK10
63ms4227kbMemory limit exceeded00
73ms4227kbMemory limit exceeded0
83ms4231kbMemory limit exceeded0
93ms4227kbMemory limit exceeded0
103ms4227kbMemory limit exceeded0
Punctaj total50

Ceva nu functioneaza?