Your microcontroller firmware environment does not allow heap allocation, so objects must be constructed inside preallocated static memory.
You must:
Block
id
value
id value
⚠️ Important: Placement new does not allocate memory and therefore requires explicit destruction.
Example
Input:
7 42
Output:
Constraints:
new (buffer) Block
new
delete
obj->~Block();
Test Cases
Test Results
Input
Expected Output