0_0_15785149_18379.cpp: In function 'double sum(int)':
0_0_15785149_18379.cpp:12:5: error: expected ';' before 'sum'
sum sum=0;
^
0_0_15785149_18379.cpp:14:4: error: assignment of function 'double sum(int)'
sum=sum+j;
^
0_0_15785149_18379.cpp:14:4: error: cannot convert 'double (*)(int)' to 'double(int)' in assignment
0_0_15785149_18379.cpp:15:8: error: cannot convert 'double (*)(int)' to 'double' in return
return sum;
^
|