need help in sums of triangle prolem.

http://www.codechef.com/viewsolution/4371177
Why I am getting RunTimeError(NZEC).

// WHY I AM GETTING WA IN THIS CODE
#include<bits/stdc++.h>
using namespace std;
int main()
{
int testcase;
cin>>testcase;
while(testcase–)
{
long long int num;
cin>>num;
long long int i , j, a[100][100] = {0} , m[1000];
for ( i = 0 ; i <num ;i++)
{
for(j = 0 ; j<=i ; j++)
cin>>a[i][j];
}
//logic
for ( i = 0 ; i < num - 1 ; i++)
{
for( j = 0 ; j < 1 ; j++)
m[i] = a[i][j] + a[i+1][j] + a[i+1][j+1] ;
// cout<<k[i][j]<<endl;
}
sort( m , m + num );

      cout<<m[num-1]<<endl;
}
return 0;

}

Did you check out http://www.codechef.com/wiki/faq#Why_do_I_get_an_NZEC ?