#include<stdio.h>
int main()
{
struct happy
{
int year;
int month;
int day;
};
int x(struct happy *q);
struct happy a;
x(&a);
return 0;
}
int x(struct happy *q)
{
printf(" ");
return 0;
}
18 14 D:\C合集\第九章\第二条.c [Warning] 'struct happy' declared inside parameter list will not be visible outside of this definition or declaration
18 5 D:\C合集\第九章\第二条.c [Error] conflicting types for 'x'
13 5 D:\C合集\第九章\第二条.c [Note] previous declaration of 'x' was here
D:\C合集\第九章\第二条.c In function 'x':
18 21 D:\C合集\第九章\第二条.c [Error] unused parameter 'q' [-Werror=unused-parameter]
D:C合集\第九章\cc1.exe some warnings being treated as errors