记录详情

Compile Error

/in/foo.c:1:1: warning: data definition has no type or storage class
 x = int(input())
 ^
/in/foo.c:1:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
/in/foo.c:1:5: error: expected expression before 'int'
 x = int(input())
     ^~~
/in/foo.c:2:26: error: stray '\357' in program
     if x >= 1 and x <= 30:
                          ^
/in/foo.c:2:27: error: stray '\274' in program
     if x >= 1 and x <= 30:
                           ^
/in/foo.c:2:28: error: stray '\232' in program
     if x >= 1 and x <= 30:
                            ^
/in/foo.c:7:1: warning: data definition has no type or storage class
 fibn1 = 1;
 ^~~~~
/in/foo.c:7:1: warning: type defaults to 'int' in declaration of 'fibn1' [-Wimplicit-int]
/in/foo.c:8:1: error: expected identifier or '(' before 'for'
 for i in range(3,x+1,1):
 ^~~
/in/foo.c:14:7: warning: character constant too long for its type
 print('不符合约定')
       ^~~~~~~~~~~~~~~~~

信息

递交者
类型
递交
题目
裴波那契数
语言
C
递交时间
2020-01-04 11:10:41
评测时间
2020-01-04 11:10:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes