Getting run time error on leet code

i tried to submit this same code over let code, but i am getting run time error which states as follows:
‘Line 1633: rapidjson::SizeType rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::Size() const [Encoding = rapidjson::UTF8, Allocator = rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator]: Assertion `IsArray()’ failed. (document.h)’

and my code link is :-https://drive.google.com/file/d/16ZB5jxoJ7Jdl6JmIUpE96EDjK6i2DOgw/view?usp=sharing

You can try copy paste this code excatly on leet code , and check for the run time error there,
PLease if you can help?

@saksham_thukral hey please check your input format according to the input of leetcode function.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.