beads.c: In function 'main':
beads.c:8:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
8 | printf("%d",&n);
| ~^ ~~
| | |
| | int *
| int
| %ls
beads.c:6:8: warning: unused variable 'bi' [-Wunused-variable]
6 | char bi;
| ^~
beads.c:5:8: warning: unused variable 'ai' [-Wunused-variable]
5 | char ai;
| ^~
beads.c:7:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d",&n);
| ^~~~~~~~~~~~~~