Accepted

foo.cc: In function ‘int main()’:
foo.cc:16:21: warning: ‘xmax’ may be used uninitialized [-Wmaybe-uninitialized]
   16 |         cout<<xmax<<" "<<maxm<<endl<<minm<<" "<<minn;
      |                     ^~~
foo.cc:4:47: note: ‘xmax’ was declared here
    4 |         int n[1000],maxm=INT_MIN,minn=INT_MAX,xmax,minm;
      |                                               ^~~~
foo.cc:16:44: warning: ‘minm’ may be used uninitialized [-Wmaybe-uninitialized]
   16 |         cout<<xmax<<" "<<maxm<<endl<<minm<<" "<<minn;
      |                                            ^~~
foo.cc:4:52: note: ‘minm’ was declared here
    4 |         int n[1000],maxm=INT_MIN,minn=INT_MAX,xmax,minm;
      |                                                    ^~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 764.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 320.0 KiB
#4 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P2568 找最大数和最小数
比赛
春季班中级3.23
语言
C++
递交时间
2024-03-30 09:30:49
评测时间
2024-03-30 09:30:49
评测机
分数
100
总耗时
11ms
峰值内存
764.0 KiB