记录详情

Compile Error

/in/foo.c: In function 'Output':
/in/foo.c:4:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=0;i<n;i++) 
    ^~~
/in/foo.c:6:8: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        printf("\n");
        ^~~~~~
/in/foo.c: In function 'main':
/in/foo.c:14:19: error: 'i' undeclared (first use in this function)
     scanf("%d",&a[i]);
                   ^
/in/foo.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:2: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration]
  output(a,n);
  ^~~~~~

信息

递交者
类型
递交
题目
A7-1 数组的输出函数
比赛
泰院2405作业赛第一场
语言
C
递交时间
2024-10-22 08:31:05
评测时间
2024-10-22 08:31:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes