COMPUTE f(n) giving wrong answer

http://ide.codingblocks.com/#/s/17428

The code is giving the right answer on my system. But the online judge shows wrong answer.

Take long long int everywhere.

1 Like