/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:2:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    2 | #define fp(i,a,b) for(register int i=a,I=b+1;i<I;++i)
      |                   ^~~
foo.cc:51:5: note: in expansion of macro 'fp'
   51 |     fp(i,1,n)ins(i);gf();
      |     ^~
foo.cc:51:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   51 |     fp(i,1,n)ins(i);gf();
      |                     ^~
foo.cc:2:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    2 | #define fp(i,a,b) for(register int i=a,I=b+1;i<I;++i)
      |                   ^~~
foo.cc:53:5: note: in expansion of macro 'fp'
   53 |     fp(i,1,n)G[i][n+1]=-p[m],G[n+1][i]=1;G[n+1][n+2]=1;
      |     ^~
foo.cc:53:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   53 |     fp(i,1,n)G[i][n+1]=-p[m],G[n+1][i]=1;G[n+1][n+2]=1;
      |                                          ^
foo.cc:49:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   49 |     scanf("%d%d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'void ins(int)':
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |  scanf("%s",s+1);int u=0,i;
      |  ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 5ms 512.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 6ms 384.0 KiB
#6 Accepted 4ms 512.0 KiB
#7 Accepted 17ms 3.0 MiB
#8 Accepted 9ms 3.125 MiB
#9 Accepted 15ms 3.125 MiB
#10 Accepted 18ms 3.125 MiB

信息

递交者
类型
递交
题目
P2017 硬币游戏
语言
C++
递交时间
2022-06-24 15:33:57
评测时间
2022-06-24 15:33:57
评测机
分数
100
总耗时
90ms
峰值内存
3.125 MiB