/in/foo.c:2:1: error: unknown type name 'def'
def ave(s):
^~~
/in/foo.c: In function 'ave':
/in/foo.c:2:11: error: expected declaration specifiers before ':' token
def ave(s):
^
/in/foo.c:9:11: warning: character constant too long for its type
print('max={:.2f}'.format(float(q)))
^~~~~~~~~~~~
/in/foo.c:10:11: warning: character constant too long for its type
print('min={:.2f}'.format(float(w)))
^~~~~~~~~~~~
/in/foo.c:11:11: warning: character constant too long for its type
print('average=',a/10)
^~~~~~~~~~
/in/foo.c:12:9: warning: character constant too long for its type
s=input('请输入:').split()
^~~~~~~~~~~~~~
/in/foo.c:2:5: warning: type of 's' defaults to 'int' [-Wimplicit-int]
def ave(s):
^~~
/in/foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
ave(s)
^~~