用的是下面这个插件
[“MinStack”,“push”,“push”,“push”,“getMin”,“pop”,“top”,“getMin”][[],[-2],[2],[-3],[],[],[],[]]\n
按照插件给的测试样例进行test,报以下错误
Error
Line 1638: SizeType rapidjson::GenericValue<rapidjson::UTF8<>>::Size() const [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>]: Assertion `IsArray()' failed. (document.h)
Line 1638: SizeType rapidjson::GenericValue<rapidjson::UTF8<>>::Size() const [Encoding = rapidjson::UTF8<>, Allocator = rapidjson::MemoryPoolAllocator<>]: Assertion `IsArray()' failed. (document.h)
数据格式不对
在中间加一个换行即可解决
[“MinStack”,“push”,“push”,“push”,“getMin”,“pop”,“top”,“getMin”]\n[[],[-2],[2],[-3],[],[],[],[]]\n