记录详情

Compile Error

foo.c:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include (std10.h)
      |          ^
foo.c:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include ‹stolib.h)
      |          ^
foo.c: In function 'main':
foo.c:7:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d",&n);
      | ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
foo.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d",&n);
      | ^~~~~
foo.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:8:5: error: 'ien' undeclared (first use in this function)
    8 | for(ien;i>=1;i=1/10)
      |     ^~~
foo.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 | printf("temp=%d n=%d %d\n",temp,n,i);
      | ^~~~~~
foo.c:12:1: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:12:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
foo.c:12:1: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:14:25: error: expected ';' before 'sl'
   14 | printf("sum=%d\n" , sum) sl
      |                         ^~~
      |                         ;
foo.c:16:9: error: expected declaration or statement at end of input
   16 |         }
      |         ^
foo.c:16:9: error: expected declaration or statement at end of input
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A4-1 回文数专题:数字之和
比赛
2022年迎新赛(第三场)
语言
C
递交时间
2022-09-16 19:41:29
评测时间
2022-09-16 19:41:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes