All indices problem1

Compilation done but run time error