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_20978532_21487.cpp:7:18: error: stray '#' in program
   double x = (b + c) / (a + b + 2 * c);
                  ^
0_0_20978532_21487.cpp:7:32: error: stray '#' in program
   double x = (b + c) / (a + b + 2 * c);
                                ^
0_0_20978532_21487.cpp:7:40: error: stray '#' in program
   double x = (b + c) / (a + b + 2 * c);
                                        ^
0_0_20978532_21487.cpp:8:29: error: stray '#' in program
   printf("%.6lf\n", b - (b + c) * x);
                             ^
0_0_20978532_21487.cpp: In function 'int main()':
0_0_20978532_21487.cpp:7:19: error: invalid operands of types 'double' and 'int' to binary 'operator&'
   double x = (b + c) / (a + b + 2 * c);
                   ^
0_0_20978532_21487.cpp:7:21: error: expected ')' before ';' token
   double x = (b + c) / (a + b + 2 * c);
                     ^
0_0_20978532_21487.cpp:7:24: error: expected ';' before ')' token
   double x = (b + c) / (a + b + 2 * c);
                        ^
0_0_20978532_21487.cpp:7:41: error: invalid operands of types 'double' and 'int' to binary 'operator&'
   double x = (b + c) / (a + b + 2 * c);
                                         ^
0_0_20978532_21487.cpp:7:50: error: expected ';' before ')' token
   double x = (b + c) / (a + b + 2 * c);
                                                  ^
0_0_20978532_21487.cpp:8:30: error: invalid operands of types 'double' and 'int' to binary 'operator&'
   printf("%.6lf\n", b - (b + c) * x);
                              ^
0_0_20978532_21487.cpp:8:32: error: expected ')' before ';' token
   printf("%.6lf\n", b - (b + c) * x);
                                ^
0_0_20978532_21487.cpp:8:35: error: expected ';' before ')' token
   printf("%.6lf\n", b - (b + c) * x);
                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 13:31:15, Gzip enabled