Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:22: warning: 'x' is used uninitialized [-Wuninitialized]
    7 |         for(int i=1;i<=x;i++)
      |                     ~^~~
foo.cc:16:15: warning: 'maxn' may be used uninitialized in this function [-Wmaybe-uninitialized]
   16 |         cout<<maxn<<endl;
      |               ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 578719416, expect 3. 2ms 256.0 KiB
#2 Wrong Answer Read -572661784, expect 3. 4ms 256.0 KiB
#3 Wrong Answer Read -1754544120, expect 5. 1ms 256.0 KiB
#4 Wrong Answer Read -936750472, expect 7. 1ms 256.0 KiB
#5 Wrong Answer Read -2036638328, expect 7. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1048 A7-3 数组的极值下标函数
语言
C++
递交时间
2022-08-26 14:24:31
评测时间
2022-08-26 14:24:31
评测机
分数
0
总耗时
11ms
峰值内存
256.0 KiB