/in/foo.c: In function 'main':
/in/foo.c:12:25: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char * (*)[20]' [-Wformat=]
12 | scanf("%s %d %d %c %c %d",&xingming,&qimo,&banji,&ganbu,&xibu,&lunwen);
| ~^ ~~~~~~~~~
| | |
| char * char * (*)[20]
/in/foo.c:19:33: error: invalid suffix ";" on integer constant
19 | singal+=2000;}
| ^~~~~~
/in/foo.c:19:39: error: expected ';' before '}' token
19 | singal+=2000;}
| ^
| ;
/in/foo.c:26:27: error: assignment to expression with array type
26 | p1=xingming;
| ^
/in/foo.c:30:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
30 | printf("%s\n%d\n%d\n",&p1,max,sum);
| ~^ ~~~
| | |
| char * char (*)[20]