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)提供评测服务