F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 00:14:19, Gzip enabled