编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1870 #992. 鱼塘 Compile Error 0 0 ms 0 K C / 424 B t330026169 2023-10-15 16:58:14
显示原始代码
#include <stdio.h>
int main() {
    int a, b, c,d, e, f;
    scanf("%d %d %d", &a, &b, &c);
    a % 4 = d;
    b % 4 = e;
    c % 4 = f;
    if (e == 0 || f == 0 || d == 0)
        printf("L");
    if (d == 1 || e == 1 || f == 1)
        printf("X");
    if (d == 2 || e == 2 || f == 2)
        printf("T");
    if (d == 3 || e == 3 || f == 3)
        printf("W");
    if (d != 1 && d != 2 && a != 3 && d != 0)
        printf("T");
    if (e != 0 && e != 1 && e != 2 && e != 3)
        printf("T");
    if (f != 0 && f != 1 && f != 2 && f != 3)
        printf("T");
    return 0;
}

编译信息

/sandbox/1/a.c:3:11: warning: treating Unicode character <U+FF0C> as identifier character rather than as ',' symbol [-Wunicode-homoglyph]
        int a,b,c,d,e,f;
                 ^~
/sandbox/1/a.c:4:29: error: use of undeclared identifier 'c'
    scanf("%d %d %d",&a,&b,&c);
                            ^
/sandbox/1/a.c:5:6: error: use of undeclared identifier 'd'
        a%4=d;
            ^
/sandbox/1/a.c:6:5: error: expression is not assignable
        b%4=e;
        ~~~^
/sandbox/1/a.c:7:2: error: use of undeclared identifier 'c'
        c%4=f;
        ^
/sandbox/1/a.c:8:17: error: use of undeclared identifier 'd'
        if(e==0||f==0||d==0)
                       ^
/sandbox/1/a.c:10:5: error: use of undeclared identifier 'd'
        if(d==1||e==1||f==1)
           ^
/sandbox/1/a.c:12:5: error: use of undeclared identifier 'd'
        if(d==2||e==2||f==2)
           ^
/sandbox/1/a.c:14:5: error: use of undeclared identifier 'd'
        if(d==3||e==3||f==3)
           ^
/sandbox/1/a.c:16:5: error: use of undeclared identifier 'd'
        if(d!=1&&d!=2&&a!=3&&d!=0)
           ^
/sandbox/1/a.c:16:11: error: use of undeclared identifier 'd'
        if(d!=1&&d!=2&&a!=3&&d!=0)
                 ^
/sandbox/1/a.c:16:23: error: use of undeclared identifier 'd'
        if(d!=1&&d!=2&&a!=3&&d!=0)
                             ^
1 warning and 11 errors generated.