carnival.cpp: In function 'int main()':
carnival.cpp:31:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
int resp; scanf("%d",resp);
^
carnival.cpp: In function 'int BB(int)':
carnival.cpp:17:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int resp; scanf("%d",&resp);
~~~~~^~~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
carnival.cpp:31:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int resp; scanf("%d",resp);
~~~~~^~~~~~~~~~~
carnival.cpp:31:18: warning: 'resp' may be used uninitialized in this function [-Wmaybe-uninitialized]
int resp; scanf("%d",resp);
~~~~~^~~~~~~~~~~