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