记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:12: error: stray '\351' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
            ^
/in/foo.c:4:13: error: stray '\233' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
             ^
/in/foo.c:4:14: error: stray '\266' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
              ^
/in/foo.c:4:15: error: expected expression before ',' token
  int s[9]={零,一,二,三,四,五,六,七,八,九}
               ^
/in/foo.c:4:16: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                ^
/in/foo.c:4:17: error: stray '\270' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                 ^
/in/foo.c:4:18: error: stray '\200' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                  ^
/in/foo.c:4:20: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                    ^
/in/foo.c:4:21: error: stray '\272' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                     ^
/in/foo.c:4:22: error: stray '\214' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                      ^
/in/foo.c:4:24: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                        ^
/in/foo.c:4:25: error: stray '\270' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                         ^
/in/foo.c:4:26: error: stray '\211' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                          ^
/in/foo.c:4:28: error: stray '\345' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                            ^
/in/foo.c:4:29: error: stray '\233' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                             ^
/in/foo.c:4:30: error: stray '\233' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                              ^
/in/foo.c:4:32: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                ^
/in/foo.c:4:33: error: stray '\272' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                 ^
/in/foo.c:4:34: error: stray '\224' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                  ^
/in/foo.c:4:36: error: stray '\345' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                    ^
/in/foo.c:4:37: error: stray '\205' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                     ^
/in/foo.c:4:38: error: stray '\255' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                      ^
/in/foo.c:4:40: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                        ^
/in/foo.c:4:41: error: stray '\270' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                         ^
/in/foo.c:4:42: error: stray '\203' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                          ^
/in/foo.c:4:44: error: stray '\345' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                            ^
/in/foo.c:4:45: error: stray '\205' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                             ^
/in/foo.c:4:46: error: stray '\253' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                              ^
/in/foo.c:4:48: error: stray '\344' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                                ^
/in/foo.c:4:49: error: stray '\271' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                                 ^
/in/foo.c:4:50: error: stray '\235' in program
  int s[9]={零,一,二,三,四,五,六,七,八,九}
                                                  ^
/in/foo.c:5:2: error: expected ',' or ';' before 'int'
  int x,a,b,c;
  ^~~
/in/foo.c:6:14: error: 'x' undeclared (first use in this function)
  scanf("%d",&x);
              ^
/in/foo.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:2: error: 'a' undeclared (first use in this function)
  a=x/100;
  ^
/in/foo.c:8:2: error: 'b' undeclared (first use in this function)
  b=(x-a*100)/10;
  ^
/in/foo.c:9:2: error: 'c' undeclared (first use in this function)
  c=x%10;
  ^
/in/foo.c:11:10: error: 'YES' undeclared (first use in this function)
   printf(YES);
          ^~~
/in/foo.c:4:6: warning: unused variable 's' [-Wunused-variable]
  int s[9]={零,一,二,三,四,五,六,七,八,九}
      ^

信息

递交者
类型
自测
题目
P1039 xf2-5水仙花数
语言
C
递交时间
2021-12-28 18:27:49
评测时间
2021-12-28 18:27:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes