foo.c: In function 'main':
foo.c:20:9: warning: unused variable 'k' [-Wunused-variable]
20 | int i,j,k;
| ^
foo.c:20:7: warning: unused variable 'j' [-Wunused-variable]
20 | int i,j,k;
| ^
foo.c: In function 'init':
foo.c:54:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
54 | scanf("%d",&k);
| ^~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from foo.c:3:
In function 'strncpy',
inlined from 'base' at foo.c:68:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 9 bytes from a string of length 199 [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strcpy',
inlined from 'swap_one' at foo.c:88:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' accessing 1 byte at offsets [0, 3628830] and [0, 3628830] may overlap 1 byte at offset 0 [-Wrestrict]
90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strcpy',
inlined from 'swap_one' at foo.c:88:1,
inlined from 'bfs' at foo.c:102:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' accessing 1 byte at offsets [0, 3628830] and [0, 3628830] may overlap 1 byte at offset 0 [-Wrestrict]
90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务