Syntax for Kadane's algorithm for finding out the largest contiguous sum in an array containing integers using C++.