Search found 1 match

by sajib_only
Sat Mar 21, 2015 1:02 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 38500

Re: 10013 - Super long sums

//why am i continuously getting RE?? :( //my code: #include <stdio.h> int main() { int n, m; int val, ex, i,j; scanf("%d", &n); while(n) { scanf("%d", &m); int num1[m], num2[m]; int sum[m]; for(i=0; i<m; i++) { scanf("%d %d", &num1[i], &num2[i]); } ex=0; i=m-1; while(i>=0) { val=num1[i]+num2[i]+ex; ...

Go to advanced search