/in/ex5.c: In function 'main':
/in/ex5.c:21:13: error: unused variable 'q' [-Werror=unused-variable]
int c,i,q;
^
/in/ex5.c:21:11: error: unused variable 'i' [-Werror=unused-variable]
int c,i,q;
^
/in/ex5.c: In function 'add':
/in/ex5.c:79:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Werror=implicit-function-declaration]
gets(x[i].name);
^~~~
fgets
/in/ex5.c: In function 'search':
/in/ex5.c:200:20: error: too many arguments for format [-Werror=format-extra-args]
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[s].cabin,x[s].phone,x[s].age,x[s].temp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex5.c:223:24: error: too many arguments for format [-Werror=format-extra-args]
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age,x[s].temp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex5.c:250:24: error: too many arguments for format [-Werror=format-extra-args]
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age,x[s].temp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex5.c:373:24: error: too many arguments for format [-Werror=format-extra-args]
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age,x[g].temp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex5.c:346:5: error: 'f' is used uninitialized in this function [-Werror=uninitialized]
int temp=f;
^~~~
cc1: all warnings being treated as errors