/ Vijos /

记录详情

Compile Error

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

信息

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