为什么我自己测试很好,在leetcode上不行。leetcode上说用g++ 4.7.3编译的。https://oj.leetcode.com/problems/zigzag-conversion/这是题目地址
我知道就是看不出哪里有内存错误才问的。。。