一直RE,谁帮我看看

P1271 【深基9.例1】选举学生会

把```for (int i = 1; i <= N; i++)```改成```for (int i = 1; i <= 999; i++)```
by Lyrith_with_xQ @ 2023-11-21 18:57:03


你写数组为N,然后遍历到下标为N,就等于访问N+1项,而数组却没有这么多
by Addicted_Game @ 2023-11-21 19:13:44


|