Borderou de evaluare (job #3375380)
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 |
| 1 | 0ms | 303kb | OK | 10 | 20 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 | 30 |
| 4 | 0ms | 307kb | OK | 10 |
| 5 | 0ms | 303kb | OK | 10 |
| 6 | 3ms | 4227kb | Memory limit exceeded | 0 | 0 |
| 7 | 3ms | 4227kb | Memory limit exceeded | 0 |
| 8 | 3ms | 4231kb | Memory limit exceeded | 0 |
| 9 | 3ms | 4227kb | Memory limit exceeded | 0 |
| 10 | 3ms | 4227kb | Memory limit exceeded | 0 |
| Punctaj total | 50 |