for (string str; cin >> str; arr.push_back(str)) {}这个不是一个无限循环吗,还有后面判断num=1是什么意思呀
点赞 1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务