记录详情

Compile Error

/in/foo.c:3:1: warning: data definition has no type or storage class
 num = input('输入年龄')
 ^~~
/in/foo.c:3:1: warning: type defaults to 'int' in declaration of 'num' [-Wimplicit-int]
/in/foo.c:3:7: warning: implicit declaration of function 'input' [-Wimplicit-function-declaration]
 num = input('输入年龄')
       ^~~~~
/in/foo.c:3:13: warning: character constant too long for its type
 num = input('输入年龄')
             ^~~~~~~~~~~~~~
/in/foo.c:3:7: error: initializer element is not constant
 num = input('输入年龄')
       ^~~~~
/in/foo.c:4:1: error: expected ',' or ';' before 'if'
 if num <2:      #判断num的值
 ^~
/in/foo.c:4:17: error: stray '#' in program
 if num <2:      #判断num的值
                 ^
/in/foo.c:4:18: error: stray '\345' in program
 if num <2:      #判断num的值
                  ^
/in/foo.c:4:19: error: stray '\210' in program
 if num <2:      #判断num的值
                   ^
/in/foo.c:4:20: error: stray '\244' in program
 if num <2:      #判断num的值
                    ^
/in/foo.c:4:21: error: stray '\346' in program
 if num <2:      #判断num的值
                     ^
/in/foo.c:4:22: error: stray '\226' in program
 if num <2:      #判断num的值
                      ^
/in/foo.c:4:23: error: stray '\255' in program
 if num <2:      #判断num的值
                       ^
/in/foo.c:4:27: error: stray '\347' in program
 if num <2:      #判断num的值
                           ^
/in/foo.c:4:28: error: stray '\232' in program
 if num <2:      #判断num的值
                            ^
/in/foo.c:4:29: error: stray '\204' in program
 if num <2:      #判断num的值
                             ^
/in/foo.c:4:30: error: stray '\345' in program
 if num <2:      #判断num的值
                              ^
/in/foo.c:4:31: error: stray '\200' in program
 if num <2:      #判断num的值
                               ^
/in/foo.c:4:32: error: stray '\274' in program
 if num <2:      #判断num的值
                                ^
/in/foo.c:5:9: warning: multi-character character constant [-Wmultichar]
    print'123'
         ^~~~~
/in/foo.c:7:12: warning: multi-character character constant [-Wmultichar]
      print '615'
            ^~~~~
/in/foo.c:9:8: warning: multi-character character constant [-Wmultichar]
   print'1230'
        ^~~~~~

信息

递交者
类型
递交
题目
分类购买
比赛
终结考试
语言
C
递交时间
2018-11-08 10:53:13
评测时间
2018-11-08 10:53:13
评测机
分数
0
总耗时
17ms
峰值内存
2.922 MiB