Leetcode problem...get the maximum score

sir, i m facing the error buffer overflow, and cant figure out…can u plss help…

problem: 1537 get the maximum score
code: https://ide.codingblocks.com/s/318657

Your code is using a lot of memory , hence buffer overflow. All the data types are created for each recursive call, that too long long data types, resulting in the given memory being used very quickly.