| Problem | shoes |
|---|---|
| User | nminhnguyenle |
| Submission Time | 2026-02-18 12:44:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
shoes.cpp: In function ‘long long int count_swaps(std::vector<int>)’:
shoes.cpp:66:9: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
66 | memset(sz,false,sizeof(sz));
| ^~
| |
| int
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/bits/stl_algobase.h:59,
from /usr/include/c++/9/vector:60,
from shoes.h:1,
from shoes.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 1 of ‘void* memset(void*, int, size_t)’
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~