cave.cpp: In function 'void exploreCave(int)':
cave.cpp:30:20: warning: 'koji' may be used uninitialized in this function [-Wmaybe-uninitialized]
doors[koji]=i;
~~~~~~~~~~~^~
In file included from /usr/include/string.h:635:0,
from /usr/include/c++/7/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:48,
from cave.cpp:2:
In function 'void* memset(void*, int, size_t)',
inlined from 'void exploreCave(int)' at cave.cpp:11:11:
/usr/include/x86_64-linux-gnu/bits/string3.h:90:70: warning: 'void* __builtin___memset_chk(void*, int, long unsigned int, long unsigned int)': specified size 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
^