Runtime Error (NZEC) in simple code

前端 未结 6 1134
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 05:41

I\'m getting runtime error (NZEC) when running the following code over at SPOJ. I\'d be very thankful if any of you would kindly point out what\'s going on.

         


        
6条回答
  •  半阙折子戏
    2020-12-11 06:24

    I got NZEC on a cpp program for the problem 'EKO'. I was making an array declaration right before the int main() statement. I shifted the declaration inside the main function and the solution got accepted.

    I normally have the array declaration outside the main function but in this case the array was a big one (int array[100001]). So may be declare your arrays inside main.

提交回复
热议问题