/in/foo.c:1:1: warning: data definition has no type or storage class
1 | w = float(input())
| ^
/in/foo.c:1:1: warning: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
/in/foo.c:1:5: error: expected expression before 'float'
1 | w = float(input())
| ^~~~~
/in/foo.c:3:23: error: stray '#' in program
3 | total_distance = 0.0 # 累计游泳距离
| ^
/in/foo.c:4:12: error: stray '#' in program
4 | count = 0 # 游泳次数
| ^
/in/foo.c:5:25: error: stray '#' in program
5 | current_distance = 2.0 # 本次要游的距离,初始为第1下的2米
| ^