foo.cc: In function 'int main()':
foo.cc:15:26: error: too few arguments to function 'void* memmove(void*, const void*, size_t)'
memmove(a+x,a+x+z);
^
In file included from /usr/include/features.h:424:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
from /usr/include/c++/7/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:38:1: note: declared here
__NTH (memmove (void *__dest, const void *__src, size_t __len))
^
foo.cc:16:25: error: too few arguments to function 'void* memmove(void*, const void*, size_t)'
memmove(temp,a+x);
^
In file included from /usr/include/features.h:424:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
from /usr/include/c++/7/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:38:1: note: declared here
__NTH (memmove (void *__dest, const void *__src, size_t __len))
^
[Hydro](https://hydro.ac)提供评测服务