请教下各位大神,这是什么原因造成的?
代码(code):
#include <stdio.h>
int main()
{
int a1=32;
int a2=51;
int maxNum=max(a1,a2);
printf("the max value is %d",maxNum);
return 0;
}
错误报告(error report):
trugle@strugle-virtual-machine:~/workspace/les1/les2$ gcc max.c hello.c o- main.out
hello.c: In function ‘main’:
hello.c:8:20: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration]
8 | int maxNum=max(a1,a2);
| ^~~
gcc: error: -E or -x required when input is from standard input