记录详情

Accepted

/in/foo.cc: In function 'int uper_bound(int, int, int)':
/in/foo.cc:9:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(a[mid]<k)x=mid-1;uper_bound(x,y,k);
         ^~
/in/foo.cc:9:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(a[mid]<k)x=mid-1;uper_bound(x,y,k);
                             ^~~~~~~~~~
/in/foo.cc:10:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(a[mid]>k)y=mid+1;uper_bound(x,y,k);
         ^~
/in/foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(a[mid]>k)y=mid+1;uper_bound(x,y,k);
                             ^~~~~~~~~~
/in/foo.cc: In function 'int lowr_bound(int, int, int)':
/in/foo.cc:18:23: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                       if(a[mid]<k)x=mid-1;lowr_bound(x,y,k);
                       ^~
/in/foo.cc:18:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
                       if(a[mid]<k)x=mid-1;lowr_bound(x,y,k);
                                           ^~~~~~~~~~
/in/foo.cc:19:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                         if(a[mid]>k)y=mid+1;lowr_bound(x,y,k);
                         ^~
/in/foo.cc:19:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
                         if(a[mid]>k)y=mid+1;lowr_bound(x,y,k);
                                             ^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:80: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
                 printf("%d\n",upper_bound(a+1,a+n+1,y)-lower_bound(a+1,a+n+1,x));
                                                                                ^
/in/foo.cc: In function 'int uper_bound(int, int, int)':
/in/foo.cc:12:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int lowr_bound(int, int, int)':
/in/foo.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 3ms 364.0 KiB
#2 Accepted 6ms 360.0 KiB
#3 Accepted 5ms 360.0 KiB
#4 Accepted 146ms 644.0 KiB
#5 Accepted 155ms 704.0 KiB
#6 Accepted 116ms 668.0 KiB
#7 Accepted 135ms 640.0 KiB
#8 Accepted 133ms 640.0 KiB
#9 Accepted 144ms 740.0 KiB
#10 Accepted 150ms 980.0 KiB

信息

递交者
类型
递交
比赛
201803月赛_02
语言
C++
递交时间
2018-03-17 20:25:00
评测时间
2018-03-17 20:28:43
评测机
分数
100
总耗时
996ms
峰值内存
980.0 KiB