foo.cc:41:5: error: conflicting declaration ‘int n’
41 | int n,f;
| ^
foo.cc:3:8: note: previous declaration as ‘double n’
3 | double n,f,R[10005],l=1,r,ans;
| ^
foo.cc:41:7: error: conflicting declaration ‘int f’
41 | int n,f;
| ^
foo.cc:3:10: note: previous declaration as ‘double f’
3 | double n,f,R[10005],l=1,r,ans;
| ^
foo.cc:42:8: error: redefinition of ‘double R [10005]’
42 | double R[10005];
| ^
foo.cc:3:12: note: ‘double R [10005]’ previously declared here
3 | double n,f,R[10005],l=1,r,ans;
| ^
foo.cc:53:5: error: redefinition of ‘int main()’
53 | int main()
| ^~~~
foo.cc:15:5: note: ‘int main()’ previously defined here
15 | int main()
| ^~~~