Clion 为啥对else报错

这是我还没写完的代码,在vs上面可以运行,不过在Clion就不行

#include <stdio.h>
#include<string.h>
#define N 100
int IsNumIn(const char word[]);
int IsSpcIn(const char word[]);
void Trim(char oldWord[], char newWord[]);
void Seg(char words[], char wArray[][100]);
int main()
{
    char words[N];
    gets_s(words, 100);  //获得用户字符

    if (IsNumIn(words) == 0)       //判断字符是否有数字
    {
        printf("error");
    }
    else if (IsSpcIn(words) == 1)      //都没有空格就输出所有
    {
        puts(words);
    }
    else
    {
        printf("1");
    }

    return 0;
}

int IsNumIn(const char word[])
{
    for (int i = 0; word[i] != '\0'; i++)
    {
        if (word[i] - '0' <= 9 && word[i] - '0' >= 0)
        {
            return 0;
        }
    }
    return 1;
}

int IsSpcIn(const char word[])
{
    for (int i = 0; word[i] != '\0'; i++)
    {
        if (word[i]-' ' == 0 ||word[i]-'\t' == 0)
        {
            return 0;
        }
    }
    return 1;
}

void Trim(char oldWord[], char newWord[])
{

}

void Seg(char words[], char wArray[][100])
{

}

img