/ Vijos /

记录详情

Memory Exceeded

foo.cc: In function 'int main()':
foo.cc:10:23: warning: unused variable 'b' [-Wunused-variable]
     int i,n,a[100001],b,m=0;
                       ^
foo.cc:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc:15:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d",&a[i]),m++;
             ~~~~~~~~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 408.0 KiB
#3 Accepted 2ms 408.0 KiB
#4 Accepted 2ms 444.0 KiB
#5 Accepted 24ms 2.77 MiB
#6 Accepted 23ms 2.789 MiB
#7 Memory Exceeded ≥22ms ≥1.016 MiB
#8 Memory Exceeded ≥24ms ≥1.016 MiB
#9 Memory Exceeded ≥23ms ≥1.016 MiB
#10 Memory Exceeded ≥25ms ≥1.016 MiB

信息

递交者
类型
递交
题目
P1917 艾酱最喜欢的数字
语言
C++
递交时间
2021-07-21 21:32:18
评测时间
2021-07-21 21:32:18
评测机
分数
60
总耗时
≥152ms
峰值内存
≥2.789 MiB