0_0_20959876_6921.cpp:27:19: error: '#' is not followed by a macro parameter
#define forb(i,a,b) for(int i=a;i<b;i++)
^
0_0_20959876_6921.cpp:28:19: error: '#' is not followed by a macro parameter
#define ford(i,a,b) for(int i=a;i<=b;i++)
^
0_0_20959876_6921.cpp:41:8: error: stray '#' in program
xh+=H*R*R*acos((R-r)/R)/3.0;
^
0_0_20959876_6921.cpp:43:8: error: stray '#' in program
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:43:50: error: stray '#' in program
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:59:19: error: stray '#' in program
m=(up+low)/2;
^
0_0_20959876_6921.cpp: In function 'double xiaohao(double)':
0_0_20959876_6921.cpp:41:9: error: invalid operands of types 'double' and 'int' to binary 'operator&'
xh+=H*R*R*acos((R-r)/R)/3.0;
^
0_0_20959876_6921.cpp:41:12: error: expected primary-expression before '=' token
xh+=H*R*R*acos((R-r)/R)/3.0;
^
0_0_20959876_6921.cpp:43:9: error: invalid operands of types 'double' and 'int' to binary 'operator&'
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:43:12: error: expected primary-expression before '=' token
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:43:51: error: invalid operands of types 'double' and 'int' to binary 'operator&'
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:43:53: error: expected ')' before ';' token
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp:43:75: error: expected ';' before ')' token
xh+=1.0/3.0*(R-r)*(R-r)*(R-r)*H/R*log((R+sqrt(R*R-(R-r)*(R-r)))/(R-r));
^
0_0_20959876_6921.cpp: In function 'int main()':
0_0_20959876_6921.cpp:59:20: error: invalid operands of types 'double' and 'int' to binary 'operator&'
m=(up+low)/2;
^
0_0_20959876_6921.cpp:59:22: error: expected ')' before ';' token
m=(up+low)/2;
^
0_0_20959876_6921.cpp:59:26: error: expected ';' before ')' token
m=(up+low)/2;
^
|