/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool chk(int)':
/in/foo.cc:14:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
   memcpy(c,a,n+1<<2);
              ~^~
/in/foo.cc:14:20: error: 'memcpy' was not declared in this scope
   memcpy(c,a,n+1<<2);
                    ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  for (int mid=l+r+1>>1;l<r;mid=l+r+1>>1) {
               ~~~^~
/in/foo.cc:42:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  for (int mid=l+r+1>>1;l<r;mid=l+r+1>>1) {
                                ~~~^~

信息

递交者
类型
递交
题目
P1020 切蛋糕
语言
C++
递交时间
2019-10-15 23:39:24
评测时间
2019-10-15 23:39:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes