记录详情

Accepted

foo.cc: In function 'Bg div(Bg, int)':
foo.cc:21:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(c.l&&c.s[c.l-1]==0) c.l--; return c;
  ^~~~~
foo.cc:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  while(c.l&&c.s[c.l-1]==0) c.l--; return c;
                                   ^~~~~~
foo.cc: In function 'void print(Bg)':
foo.cc:24:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=a.l-1;~i;i--) printf("%d",a.s[i]); printf("\n");
  ^~~
foo.cc:24:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for(int i=a.l-1;~i;i--) printf("%d",a.s[i]); printf("\n");
                                               ^~~~~~
foo.cc: In function 'int main()':
foo.cc:27:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n),m=n-2;
  ~~~~~~~~~~~~~~^~~~~~
foo.cc:28:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;i++) scanf("%d",&d[i]),d[i]==-1? t++:m-=(d[i]-1);
                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 400.0 KiB
#2 Accepted 16ms 456.0 KiB
#3 Accepted 14ms 492.0 KiB
#4 Accepted 24ms 484.0 KiB
#5 Accepted 4ms 480.0 KiB
#6 Accepted 7ms 508.0 KiB
#7 Accepted 7ms 456.0 KiB
#8 Accepted 7ms 480.0 KiB
#9 Accepted 3ms 384.0 KiB
#10 Accepted 25ms 464.0 KiB

信息

递交者
类型
递交
题目
P1007 [HNOI2008]明明的烦恼
语言
C++
递交时间
2021-04-22 10:05:20
评测时间
2021-04-22 10:05:20
评测机
分数
100
总耗时
114ms
峰值内存
508.0 KiB