记录详情

Compile Error

foo.c: In function 'Concat':
foo.c:8:17: error: stray '\357' in program
    8 |    strcpy(n,n+1);
      |                 ^
foo.c:8:18: error: stray '\274' in program
    8 |    strcpy(n,n+1);
      |                  ^
foo.c:8:19: error: stray '\233' in program
    8 |    strcpy(n,n+1);
      |                   ^
foo.c:8:17: error: expected ';' before 'puts'
    8 |    strcpy(n,n+1);
      |                 ^
      |                 ;
    9 |     puts(strcat(m,n));
      |     ~~~~         
foo.c:5:6: warning: unused variable 'i' [-Wunused-variable]
    5 |  int i,lg;
      |      ^
foo.c: In function 'main':
foo.c:14:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   14 |  gets(k1);
      |  ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.c:15:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   15 |  gets(k2);
      |  ^~~~
In file included from /usr/include/stdio.h:867,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.c:14:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
   14 |  gets(k1);
      |  ^~~~~~~~
foo.c:15:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
   15 |  gets(k2);
      |  ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
中北 计算机2021级专业修读指导(4)
语言
C
递交时间
2021-12-23 21:36:53
评测时间
2021-12-23 21:36:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes