记录详情

Accepted

/in/foo.c: In function 'mid':
/in/foo.c:24:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(x<y && x>z || x<z && x>y)  x2=x;
     ~~~~^~~~~~
/in/foo.c:25:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y<x && y>z || y<z && y>x)  x2=y;
     ~~~~^~~~~~
/in/foo.c:26:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(z<y && z>x || z<x && z>y)  x2=z;
     ~~~~^~~~~~
/in/foo.c: In function 'max':
/in/foo.c:19:9: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x1;
         ^~
/in/foo.c: In function 'mid':
/in/foo.c:28:9: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x2;
         ^~
/in/foo.c: In function 'main':
/in/foo.c:10:2: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",x2,x1);
  ^~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 200.0 KiB
#2 Accepted 0ms 204.0 KiB
#3 Accepted 0ms 204.0 KiB
#4 Accepted 0ms 204.0 KiB
#5 Accepted 0ms 200.0 KiB

信息

递交者
类型
递交
题目
A1-2 分支结构练习:三数的特征值
比赛
基于基本数据类型的程序设计训练
语言
C
递交时间
2019-03-30 13:30:29
评测时间
2019-03-30 13:30:29
评测机
分数
100
总耗时
4ms
峰值内存
204.0 KiB