记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:13: warning: spurious trailing '%' in format [-Wformat=]
  printf("GUN%");
             ^
foo.c:9:14: warning: implicit declaration of function 'GUN' [-Wimplicit-function-declaration]
  printf("%s",GUN(n));
              ^~~
foo.c:9:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
  printf("%s",GUN(n));
          ~^  ~~~~~~
          %d
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:15:11: error: expected statement before ')' token
  return a;)
           ^
foo.c:15: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);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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