记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:13: warning: spurious trailing '%' in format [-Wformat=]
  printf("GUN%");
             ^
foo.c:9:2: warning: implicit declaration of function 'GUN' [-Wimplicit-function-declaration]
  GUN(n);
  ^~~
foo.c: In function 'GNU':
foo.c:12:9: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 {char a="isNotUnix";
         ^~~~~~~~~~~
foo.c:13:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
  printf("%s",a);
          ~^
          %d
foo.c:14:11: error: expected statement before ')' token
  GUN(n-1);)
           ^
foo.c:14:11: error: expected declaration or statement at end of input
foo.c: In function 'main':
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c: In function 'GNU':
foo.c:14:11: warning: control reaches end of non-void function [-Wreturn-type]
  GUN(n-1);)
           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
(lpj 1-1)GNU is Not Unix
语言
C
递交时间
2021-12-01 20:22:21
评测时间
2021-12-01 20:22:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes