获取此代码的一些编译器/ lint 错误。不明白他们的意思,不起作用
int main(void)
{
int CountRating();
return 0;
}
错误:
--- Module:
int CountRating();
c(70): warning 937: (Note -- old-style function declaration for function 'CountRating')
.c(70): warning 580: (Warning -- Redeclaration of function 'CountRating(void)' (hiding line 25) causes loss of prototype)
}
C1A5E1_CountRating.c(73): warning 752: (Info -- local declarator 'CountRating()' (line 70) not referenced)
--- Global Wrap-up
(70): warning 714: (Info -- Symbol 'CountRating(void)' (line 70, file c) not referenced)
作品:
int main(void)
{
CountRating();
return 0;
}
我该怎么做才能让它返回一个int?