记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
    6 |         scanf("%s%s",&A,&B);
      |                ~^    ~~
      |                 |    |
      |                 |    char (*)[10000]
      |                 char *
foo.c:6:19: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10000]' [-Wformat=]
    6 |         scanf("%s%s",&A,&B);
      |                  ~^     ~~
      |                   |     |
      |                   |     char (*)[10000]
      |                   char *
foo.c:7:20: error: expected expression before 'int'
    7 |         int lena = int(strlen(A));
      |                    ^~~
foo.c:8:20: error: expected expression before 'int'
    8 |         int lenb = int(strlen(B));
      |                    ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1511 Problem 2D. A+B,但是人生苦短...
语言
C
递交时间
2023-10-18 22:42:45
评测时间
2023-10-18 22:42:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes