Doubt: CUBEFR SPOJ

Problem Statement - http://www.spoj.com/problems/CUBEFR/

Solution - http://ideone.com/EmnZwm

Unable to know what is wrong in it. Help me out.

Check your array size…ANSWER IN EDIT

1 Like

Thanks :slight_smile:

//