/ new_bzoj /

记录详情

Accepted

/in/foo.cc: In function 'void cdq(long long int, long long int)':
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:21:11: note: in expansion of macro 'mid'
     cdq(l,mid);cdq(mid+1,r);
           ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:21:20: note: in expansion of macro 'mid'
     cdq(l,mid);cdq(mid+1,r);
                    ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:22:22: note: in expansion of macro 'mid'
     for(ll i=l,j=l,k=mid+1;i<=r;i++)
                      ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:23:25: note: in expansion of macro 'mid'
         if((k>r) || (j<=mid && q[j].pos<q[k].pos)) t[i]=q[j++];
                         ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:27:27: note: in expansion of macro 'mid'
         if((q[i]=t[i]).id>mid)
                           ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:32:21: note: in expansion of macro 'mid'
         if(q[i].id<=mid)
                     ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:35:20: note: in expansion of macro 'mid'
         if(q[i].id>mid)
                    ^~~
/in/foo.cc:2:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define mid (l+r>>1)
              ~^~
/in/foo.cc:40:21: note: in expansion of macro 'mid'
         if(q[i].id<=mid)
                     ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:45:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
     scanf("%d%d",&n,&m);
                       ^
/in/foo.cc:45:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:47:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
         scanf("%d",&tem),a[tem]=i;
                        ^
/in/foo.cc:49:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
         scanf("%d",&in[i]),ok[in[i]]=1;
                          ^
# 状态 耗时 内存占用
#1 Accepted 6ms 6.25 MiB
#2 Accepted 219ms 12.434 MiB
#3 Accepted 227ms 12.434 MiB
#4 Accepted 9ms 8.25 MiB
#5 Accepted 54ms 7.102 MiB
#6 Accepted 67ms 11.125 MiB
#7 Accepted 111ms 13.0 MiB
#8 Accepted 128ms 12.938 MiB
#9 Accepted 166ms 12.871 MiB
#10 Accepted 120ms 10.461 MiB

信息

递交者
类型
递交
题目
动态逆序对
语言
C++
递交时间
2018-01-02 20:22:50
评测时间
2018-01-02 20:22:51
评测机
分数
100
总耗时
1111ms
峰值内存
13.0 MiB