记录详情

Compile Error

/in/foo.c:1:2: error: invalid preprocessing directive #a
 #a=float(input())
  ^
/in/foo.c:2:1: warning: data definition has no type or storage class
 b=float(input())
 ^
/in/foo.c:2:1: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
/in/foo.c:2:3: error: expected expression before 'float'
 b=float(input())
   ^~~~~
/in/foo.c:12:7: error: stray '\342' in program
 print(“%.2f”%a)
       ^
/in/foo.c:12:8: error: stray '\200' in program
 print(“%.2f”%a)
        ^
/in/foo.c:12:9: error: stray '\234' in program
 print(“%.2f”%a)
         ^
/in/foo.c:12:14: error: stray '\342' in program
 print(“%.2f”%a)
              ^
/in/foo.c:12:15: error: stray '\200' in program
 print(“%.2f”%a)
               ^
/in/foo.c:12:16: error: stray '\235' in program
 print(“%.2f”%a)
                ^

信息

递交者
类型
递交
题目
P1007 通信计费
比赛
测试02
语言
C
递交时间
2020-01-08 16:59:54
评测时间
2020-01-08 16:59:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes