力扣ERROR:variable-sized object may not be initialized

力扣刷题大家都见过吗?
variable-sized object may not be initialized
意思是定义的数组不能用变量啦

怎么解决?
1、动态数组
2、指针 new

猜你喜欢

转载自www.cnblogs.com/coding365/p/12642868.html