大佬帮我看一下这个为啥编译错误 class Solution { public: /** * Note: 类名、方法名、参数名已经指定,请勿修改 * * * 找到数组中乘积最大的连续子数组,并返回乘积 * @param nums long长整型 vector 原始数组 * @return long长整型 */ long long GetSubArrayMaxProduct(vector<long>& nums) { // write code here int n = nums.size(); if (n == 0) { return 0; } vector<long long> maxNums(n, 0); vector<long long> minNums(n, 0); maxNums[0] = nums[0]; minNums[0] = nums[0]; for (int i = 1; i < n; ++i) { maxNums[i] = max(max(maxNums[i - 1] * nums[i], minNums[i - 1] * nums[i]), nums[i]); maxNums[i] = min(min(maxNums[i - 1] * nums[i], minNums[i - 1] * nums[i]), nums[i]); } long long ans = 0; for (auto num : maxNums) { ans = max(ans, num); } return ans; } };