/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:9:24: error: expected primary-expression before ')' token
     for(int i=1;i<=n;++)a[i]=i;
                        ^
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)提供评测服务

信息

递交者
类型
递交
题目
P1058 粘贴文本
语言
C++
递交时间
2021-07-11 18:52:46
评测时间
2021-07-11 18:52:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes