Problem physics
User lty748
Submission Time 2025-01-01 17:36:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

physics.cpp:3:3: error: invalid preprocessing directive #Constants
3 | # Constants
| ^~~~~~~~~
physics.cpp:4:10: error: stray ‘#’ in program
4 | g = 9.8 # Gravity (m/s^2)
| ^
physics.cpp:5:10: error: stray ‘#’ in program
5 | k = 0.1 # Air resistance coefficient (assumed, depends on shape/size)
| ^
physics.cpp:6:11: error: stray ‘#’ in program
6 | m = 0.01 # Mass of errorbomb (kg)
| ^
physics.cpp:9:3: error: invalid preprocessing directive #Input
9 | # Input: Height in feet
| ^~~~~
physics.cpp:13:3: error: invalid preprocessing directive #Terminal
13 | # Terminal velocity
| ^~~~~~~~
physics.cpp:16:3: error: invalid preprocessing directive #Numerical
16 | # Numerical approximation for velocity at impact
| ^~~~~~~~~
physics.cpp:19:3: error: invalid preprocessing directive #Convert
19 | # Convert to km/h and round to