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_20232058_5232.cpp: In function 'int main()':
0_0_20232058_5232.cpp:4:11: error: invalid type argument of unary '*' (have 'double')
 #define g 9.8;
           ^
0_0_20232058_5232.cpp:11:16: note: in expansion of macro 'g'
        ans=two*g*l*l/v/v+v*v/(2*g)+h;
                ^
0_0_20232058_5232.cpp:11:18: error: invalid type argument of unary '*' (have 'double')
        ans=two*g*l*l/v/v+v*v/(2*g)+h;
                  ^
0_0_20232058_5232.cpp:4:14: error: expected ')' before ';' token
 #define g 9.8;
              ^
0_0_20232058_5232.cpp:11:33: note: in expansion of macro 'g'
        ans=two*g*l*l/v/v+v*v/(2*g)+h;
                                 ^
0_0_20232058_5232.cpp:11:34: error: expected primary-expression before ')' token
        ans=two*g*l*l/v/v+v*v/(2*g)+h;
                                  ^


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-07-01 20:54:00, Gzip enabled