记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   23 |   if(sum/s[g-1]==1)
      |   ^~
foo.cc:29:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   29 |    if(j>=g-1)
      |    ^~
foo.cc:6:10: warning: unused variable 'k' [-Wunused-variable]
    6 |  int n,i,k,j,g;
      |          ^
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%d %lld",&g,&x);
      |   ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 |   scanf("%d",&s[j]);
      |   ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 3. 4ms 768.0 KiB
#2 Wrong Answer Read 2, expect 49. 3ms 768.0 KiB
#3 Wrong Answer Read 2, expect 58. 3ms 896.0 KiB
#4 Wrong Answer Read 2, expect 4. 16ms 764.0 KiB
#5 Wrong Answer Read 4, expect 4. 23ms 768.0 KiB
#6 Wrong Answer Read 4, expect 4. 16ms 896.0 KiB

信息

递交者
类型
递交
题目
P1307 D. 蚂蚁竞走I
语言
C++
递交时间
2021-12-23 22:35:00
评测时间
2021-12-23 22:35:00
评测机
分数
0
总耗时
67ms
峰值内存
896.0 KiB