记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:9:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
  scanf("%s%s",u,v);
         ~^    ~
         %ls
/in/foo.c:9:12: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
  scanf("%s%s",u,v);
           ~^    ~
           %ls
/in/foo.c:12:10: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
   strcat(v,u);
          ^
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'char * restrict' but argument is of type 'int *'
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
/in/foo.c:12:12: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
   strcat(v,u);
            ^
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'const char * restrict' but argument is of type 'int *'
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
/in/foo.c:13:10: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
   strcat(u,v);
          ^
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'char * restrict' but argument is of type 'int *'
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
/in/foo.c:13:12: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
   strcat(u,v);
            ^
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'const char * restrict' but argument is of type 'int *'
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
/in/foo.c:16:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
  printf("%s",u);
          ~^  ~
          %ls
# 状态 耗时 内存占用
#1 Accepted 1ms 196.0 KiB
#2 Accepted 1ms 192.0 KiB
#3 Accepted 1ms 184.0 KiB
#4 Accepted 1ms 208.0 KiB
#5 Accepted 1ms 184.0 KiB

信息

递交者
类型
递交
题目
2-2 语言的起点
比赛
课程赛事 2018/12/1
语言
C
递交时间
2018-12-01 09:14:23
评测时间
2018-12-01 09:14:23
评测机
分数
100
总耗时
6ms
峰值内存
208.0 KiB