破案了, ```while(cin>>a[++n])``` 把最后的文件结尾字符给算上了:( by Mr_RedStone @ 2024-03-23 09:16:21
艹离谱 by EthanSong @ 2024-03-23 09:50:06