数据溢出signed integer overflow 2000000000+1000000000 cannot be represented in type ‘value_type‘
问题复现//vector&numslongval=nums[i]+nums[j]+nums[left]+nums[right];其中,nums[i]=1000000000nums[j]=1000000000nums[left]=1000000000nums[right]=1000000000原因在C++中,当你有一个表达式如longval=nums[i]+nums[j]+nums[left]+nu