if(x >= -1 && x < 0) // 后面两个else if 里这样写 用 && 连接
你的printf 函数里加个&a, 在这里输出的是a的地址不是a的值
你的逻辑运算符没咋地玩明白。
if(x >= -1 && x < 0)