记录详情

Compile Error

/in/foo.c: In function 'add':
/in/foo.c:10:17: error: 'aj' undeclared (first use in this function); did you mean 'j'?
   10 |             if (aj] >a[j + 1])
      |                 ^~
      |                 j
/in/foo.c:10:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:19: error: expected ')' before ']' token
   10 |             if (aj] >a[j + 1])
      |                ~  ^
      |                   )
/in/foo.c:10:19: error: expected statement before ']' token
/in/foo.c:10:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   10 |             if (aj] >a[j + 1])
      |             ^~
/in/foo.c:10:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   10 |             if (aj] >a[j + 1])
      |                     ^
/in/foo.c:10:21: error: expected expression before '>' token
/in/foo.c:10:30: error: expected statement before ')' token
   10 |             if (aj] >a[j + 1])
      |                              ^
/in/foo.c: In function 'main':
/in/foo.c:25:30: error: 'a' undeclared (first use in this function)
   25 |                  scanf("%c",&a[i]);
      |                              ^
/in/foo.c:27:9: warning: unused variable 'n' [-Wunused-variable]
   27 |     int n= strlen(a);
      |         ^
/in/foo.c:22:10: warning: unused variable 'str' [-Wunused-variable]
   22 |     char str[100];
      |          ^~~

信息

递交者
类型
自测
语言
C
递交时间
2025-12-01 17:12:28
评测时间
2025-12-01 17:12:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes