Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:35: warning: variable 'nt' set but not used [-Wunused-but-set-variable]
    5 |         int n,a,b,c,max,min,cnt=0,nt;
      |                                   ^~
/in/foo.cc:43:22: warning: 'min' may be used uninitialized [-Wmaybe-uninitialized]
   43 |                 n=max-min;
      |                   ~~~^~~~
/in/foo.cc:5:25: note: 'min' was declared here
    5 |         int n,a,b,c,max,min,cnt=0,nt;
      |                         ^~~
/in/foo.cc:43:22: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized]
   43 |                 n=max-min;
      |                   ~~~^~~~
/in/foo.cc:5:21: note: 'max' was declared here
    5 |         int n,a,b,c,max,min,cnt=0,nt;
      |                     ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 536.0 KiB
#2 Accepted 2ms 472.0 KiB
#3 Accepted 1ms 476.0 KiB

信息

递交者
类型
递交
题目
P2594 数字黑洞2级2 2023.9
比赛
GESP2级 考前练习
语言
C++
递交时间
2025-06-27 21:43:10
评测时间
2025-06-27 21:43:10
评测机
分数
100
总耗时
5ms
峰值内存
536.0 KiB