/ Vijos /

记录详情

Compile Error

foo.c:1:1: error: unknown type name 'def'
 def EasySelection(n, flag, nums):
 ^~~
foo.c: In function 'EasySelection':
foo.c:1:33: error: expected declaration specifiers before ':' token
 def EasySelection(n, flag, nums):
                                 ^
foo.c:22:16: warning: multi-character character constant [-Wmultichar]
         return 'wind'
                ^~~~~~
foo.c:24:16: warning: character constant too long for its type
         return 'lolanv'
                ^~~~~~~~
foo.c:27:20: warning: multi-character character constant [-Wmultichar]
             return 'wind'
                    ^~~~~~
foo.c:29:20: warning: character constant too long for its type
             return 'lolanv'
                    ^~~~~~~~
foo.c:31:14: warning: character constant too long for its type
 if __name__=='__main__':
              ^~~~~~~~~~
foo.c:1:5: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
 def EasySelection(n, flag, nums):
     ^~~~~~~~~~~~~
foo.c:1:5: warning: type of 'flag' defaults to 'int' [-Wimplicit-int]
foo.c:1:5: warning: type of 'nums' defaults to 'int' [-Wimplicit-int]
foo.c:41:9: warning: control reaches end of non-void function [-Wreturn-type]
         print(EasySelection(n_list[i], first_list[i], nums_list[i]))
         ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1281 Easy Selection
语言
C
递交时间
2021-10-15 21:01:58
评测时间
2021-10-15 21:01:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes