记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:8:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
     scanf("%s%s",a,b);
            ~^    ~
            %ls
/in/foo.c:8:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
     scanf("%s%s",a,b);
              ~^    ~
              %ls
/in/foo.c:11:16: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
         strcat(b,a);
                ^
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:11:18: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
         strcat(b,a);
                  ^
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:12:16: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
         strcat(a,b);
                ^
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:18: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
         strcat(a,b);
                  ^
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:14:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
         printf("%s",a);
                 ~^  ~
                 %ls
/in/foo.c:6:35: warning: unused variable 'k' [-Wunused-variable]
     int a[100000],b[100000],n,m=1,k=0;
                                   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 192.0 KiB
#2 Accepted 0ms 204.0 KiB
#3 Accepted 1ms 188.0 KiB
#4 Accepted 1ms 188.0 KiB
#5 Accepted 1ms 208.0 KiB

信息

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