/ Vijos /

记录详情

Accepted

foo.cc: In function 'int IN()':
foo.cc:13:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   13 | while (!isdigit(c=getchar()));x=c-'0';
      | ^~~~~
foo.cc:13:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   13 | while (!isdigit(c=getchar()));x=c-'0';
      |                               ^
foo.cc:14:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   14 | while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
      | ^~~~~
foo.cc:14:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   14 | while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
      |                                                    ^~~~~~
foo.cc: In function 'int main()':
foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
foo.cc:88:24: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                        ^~~
foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
foo.cc:88:34: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                  ^~~
foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
foo.cc:88:40: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                        ^~~
foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
foo.cc:88:53: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                                     ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 512.0 KiB
#2 Accepted 1ms 512.0 KiB
#3 Accepted 1ms 512.0 KiB
#4 Accepted 2ms 640.0 KiB
#5 Accepted 2ms 640.0 KiB
#6 Accepted 14ms 2.375 MiB
#7 Accepted 7ms 1.625 MiB
#8 Accepted 52ms 6.75 MiB
#9 Accepted 1070ms 12.984 MiB
#10 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2021-12-16 21:08:43
评测时间
2021-12-16 22:01:21
评测机
分数
100
总耗时
1155ms
峰值内存
12.984 MiB