0_0_16712624_20014.cpp: In function 'int main()':
0_0_16712624_20014.cpp:11:13: error: 'i' was not declared in this scope
for(i=a;i<=b;i++)
^
0_0_16712624_20014.cpp:14:17: error: 'sum1' was not declared in this scope
sum1+=i*i;
^
0_0_16712624_20014.cpp:17:20: error: 'sum2' was not declared in this scope
sum2+=i*i*i;
^
0_0_16712624_20014.cpp:21:28: error: 'sum1' was not declared in this scope
printf("%ld %ld\n",sum1,sum2);
^
0_0_16712624_20014.cpp:21:33: error: 'sum2' was not declared in this scope
printf("%ld %ld\n",sum1,sum2);
^
0_0_16712624_20014.cpp: At global scope:
0_0_16712624_20014.cpp:24:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_16712624_20014.cpp:25:1: error: expected declaration before '}' token
}
^
|