记录详情

Compile Error

foo.c: In function 'Sum':
foo.c:3:5: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
 int Sum(x)       //定义Sum函数
     ^~~
foo.c:12:9: error: stray '\357' in program
  }while (x!=0);
         ^
foo.c:12:10: error: stray '\274' in program
  }while (x!=0);
          ^
foo.c:12:11: error: stray '\210' in program
  }while (x!=0);
           ^
foo.c:12:12: error: expected '(' before 'x'
  }while (x!=0);
            ^
foo.c:12:16: error: stray '\357' in program
  }while (x!=0);
                ^
foo.c:12:17: error: stray '\274' in program
  }while (x!=0);
                 ^
foo.c:12:18: error: stray '\211' in program
  }while (x!=0);
                  ^
foo.c: In function 'main':
foo.c:19:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C
递交时间
2021-08-29 18:33:31
评测时间
2021-08-29 18:33:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes