SUMSUMS - summing sums

output is not getting displayed
ide: https://ide.codingblocks.com/s/225199
have use matrix exponentiation

Hi @Vishal123
While declaring vectors ans and c, declare their size with them. vector c(n) and vector ans(n).