0_0_18045157_22176.cpp:45:4: error: expected unqualified-id before '/' token
*/
^
0_0_18045157_22176.cpp:45:4: error: expected constructor, destructor, or type conversion before '/' token
0_0_18045157_22176.cpp: In function 'int main()':
0_0_18045157_22176.cpp:50:5: error: redefinition of 'int main()'
int main()
^
0_0_18045157_22176.cpp:35:5: note: 'int main()' previously defined here
int main()
^
0_0_18045157_22176.cpp:57:3: error: 'ans' was not declared in this scope
ans[i]=ans[i-1]+sum;
^
0_0_18045157_22176.cpp:62:20: error: 'ans' was not declared in this scope
printf("%.2lf\n",ans[n]);
^
|