foo.c:2:1: error: unknown type name 'def'
def EasySelection(n, flag, nums):
^~~
foo.c: In function 'EasySelection':
foo.c:2:33: error: expected declaration specifiers before ':' token
def EasySelection(n, flag, nums):
^
foo.c:23:16: warning: multi-character character constant [-Wmultichar]
return 'wind'
^~~~~~
foo.c:25:16: warning: character constant too long for its type
return 'lolanv'
^~~~~~~~
foo.c:28:20: warning: multi-character character constant [-Wmultichar]
return 'wind'
^~~~~~
foo.c:30:20: warning: character constant too long for its type
return 'lolanv'
^~~~~~~~
foo.c:32:14: warning: character constant too long for its type
if __name__=='__main__':
^~~~~~~~~~
foo.c:2:5: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
def EasySelection(n, flag, nums):
^~~~~~~~~~~~~
foo.c:2:5: warning: type of 'flag' defaults to 'int' [-Wimplicit-int]
foo.c:2:5: warning: type of 'nums' defaults to 'int' [-Wimplicit-int]
foo.c:42: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)提供评测服务