记录详情

Compile Error

foo.c: In function 'main':
foo.c:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   12 |  for(i=0;i<n2;i++)
      |  ^~~
foo.c:14:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   14 |   FSM(a,n1,b,n2);
      |   ^~~
foo.c:14:3: warning: implicit declaration of function 'FSM' [-Wimplicit-function-declaration]
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d",&n1);
      |  ^~~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",&n2);
      |  ^~~~~~~~~~~~~~~
foo.c:11:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   11 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccWWnBIe.o: in function `main':
foo.c:(.text.startup+0xe9): undefined reference to `FSM'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
C语言课程设计考试
语言
C
递交时间
2022-05-31 12:12:00
评测时间
2022-05-31 12:12:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes