记录详情

Accepted

foo.cc: In function ‘int main()’:
foo.cc:8:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
    8 |                 if(a>b)
      |                   ^
foo.cc:16:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
   16 |                 if(b>a)
      |                   ^
foo.cc:24:20: warning: ‘mid’ may be used uninitialized [-Wmaybe-uninitialized]
   24 |         cout<<mid<<" "<<max<<endl;
      |                    ^~~
foo.cc:6:19: note: ‘mid’ was declared here
    6 |         int a,b,c,mid,max;
      |                   ^~~
foo.cc:24:25: warning: ‘max’ may be used uninitialized [-Wmaybe-uninitialized]
   24 |         cout<<mid<<" "<<max<<endl;
      |                         ^~~
foo.cc:6:23: note: ‘max’ was declared here
    6 |         int a,b,c,mid,max;
      |                       ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 328.0 KiB
#2 Accepted 2ms 764.0 KiB
#3 Accepted 2ms 552.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
A1-2 分支结构练习:三数的特征值
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C++
递交时间
2024-08-15 14:26:33
评测时间
2024-08-15 14:26:33
评测机
分数
100
总耗时
13ms
峰值内存
764.0 KiB