In file included from /usr/include/string.h:495,
from combo.cpp:2:
In function 'char* strcpy(char*, const char*)',
inlined from 'std::string guess_sequence(int)' at combo.cpp:8:11:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:33: warning: 'char* __builtin___strcpy_chk(char*, const char*, long unsigned int)' writing 5 bytes into a region of size 4 [-Wstringop-overflow=]
90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:10: note: at offset 0 to object 'lets' with size 4 declared here
7 | char lets[4];
| ^~~~
In file included from /usr/include/string.h:495,
from combo.cpp:2:
In function 'char* strcpy(char*, const char*)',
inlined from 'std::string guess_sequence(int)' at combo.cpp:8:11:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' forming offset 4 is out of the bounds [0, 4] of object 'lets' with type 'char [4]' [-Warray-bounds]
90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:10: note: 'lets' declared here
7 | char lets[4];
| ^~~~