记录详情

Compile Error

foo.c: In function 'Init':
foo.c:5:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    5 |         int n=strlen(s);
      |               ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
foo.c:5:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    5 |         int n=strlen(s);
      |               ^~~~~~
foo.c:5:15: note: include '<string.h>' or provide a declaration of 'strlen'
foo.c: In function 'Output':
foo.c:13:28: error: expected ';' before '}' token
   13 |         {printf("%d ",d[i])}
      |                            ^
      |                            ;
foo.c: In function 'Add':
foo.c:40:15: error: 'i' undeclared (first use in this function)
   40 |         for(; i<n1; i++)
      |               ^
foo.c:40:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:53:1: warning: control reaches end of non-void function [-Wreturn-type]
   53 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A11-3 高精度整数的加法
语言
C
递交时间
2023-11-11 16:09:42
评测时间
2023-11-11 16:09:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes