蒟蒻求助

P1610 鸿山洞的灯

未定义行为搞的。数组初始化时长度应为一个**常数**,而不是一个变量。
by Static_int @ 2022-06-24 16:44:08


@[chenmo2008](/user/738230)
by Static_int @ 2022-06-24 16:44:13


第二点,list这一变量与STL冲突
by Static_int @ 2022-06-24 16:45:12


@[chenmo2008](/user/738230) 第三点,你的数组范围是`list`到`list+n`,而在排序时却错误的写作`list+1`到`list+1+n`。
by Static_int @ 2022-06-24 16:49:20


附上[通过记录](https://www.luogu.com.cn/record/77825994)
by Static_int @ 2022-06-24 16:49:53


@[Static_int](/user/731608) 谢谢
by chenmo2008 @ 2022-06-24 17:06:37


你这头像 ![](//图.tk/i)
by xuorange @ 2022-06-24 19:46:22


|