记录详情

Accepted

/in/foo.c: In function 'mid':
/in/foo.c:26:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(x<y && x>z || x<z && x>y)  x2=x;
     ~~~~^~~~~~
/in/foo.c:27:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y<x && y>z || y<z && y>x)  x2=y;
     ~~~~^~~~~~
/in/foo.c:28: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:21:9: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x1;
         ^~
/in/foo.c: In function 'mid':
/in/foo.c:30:9: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x2;
         ^~
/in/foo.c: In function 'main':
/in/foo.c:12:2: warning: 'x3' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d %d",x1,x2,x3);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:12:2: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.c: In function 'min':
/in/foo.c:38:9: warning: 'x3' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x3;
         ^~
# 状态 耗时 内存占用
#1 Accepted 0ms 204.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 0ms 208.0 KiB
#4 Accepted 0ms 208.0 KiB
#5 Accepted 0ms 204.0 KiB

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
基于基本数据类型的结构化程序设计训练2019-3-31
语言
C
递交时间
2019-03-31 18:01:25
评测时间
2019-03-31 18:01:25
评测机
分数
100
总耗时
4ms
峰值内存
208.0 KiB