记录详情

Wrong Answer

foo.cc: In function 'int main(int, char**)':
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:7:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  for(int i=0;i<n;i++) scanf("%d",&array[i]);
      |                       ~~~~~^~~~~~~~~~~~~~~~
foo.cc:10:45: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
   10 |  for(int i=0;i<n;i++) if (array[i]==t) count++;
      |                                        ~~~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 758018522, expect 10. 2ms 640.0 KiB
#2 Wrong Answer Read -574905896, expect 8. 3ms 640.0 KiB

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:48:35
评测时间
2022-07-28 21:48:36
评测机
分数
0
总耗时
5ms
峰值内存
640.0 KiB