View Compilation Error
2_30942_2456553_9860.cpp: In function 'int main()':
2_30942_2456553_9860.cpp:5:494: error: expected primary-expression before 'long'
{ int sum1; for(a=-50;a<=50;a++) for(b=-50;b<=50;b++) for(c=-50;c<=50;c++) { sum1=(a-b)*c; x[sum1+5000]++; } int t; scanf("%d",&t); while(t--) { scanf("%d",&k); if(k==0) {printf("166016493\n");continue;} memset(y,0,sizeof(y)); int sum2; for(d=-50;d<=50;d++) for(e=-50;e<=50;e++) for(f=-50;f<=50;f++) { if(f==0) continue; sum2=f*k-d*e; if(sum2>=-5000&&sum2<=5000) y[sum2+5000]++; } int count=0; int i; for(i=0;i<=10000;i++) count+=(x[i]*y[i])%(long long(1e9+7)); printf("%d\n",count); } return 0; }
^
2_30942_2456553_9860.cpp:5:494: error: expected ')' before 'long'