记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:25:9: error: 'newA' undeclared (first use in this function)
   25 |         newA
      |         ^~~~
/in/foo.c:25:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:25:13: error: expected ';' before 'for'
   25 |         newA
      |             ^
      |             ;
   26 |     // 对新数组进行插入排序(升序)
   27 |     for (i = 1; i < n + m; i++) {
      |     ~~~      
/in/foo.c:44:1: error: expected declaration or statement at end of input
   44 | }
      | ^
/in/foo.c:8:18: warning: unused variable 'temp' [-Wunused-variable]
    8 |     int i, j, k, temp;
      |                  ^~~~
/in/foo.c:8:15: warning: unused variable 'k' [-Wunused-variable]
    8 |     int i, j, k, temp;
      |               ^
/in/foo.c:8:12: warning: unused variable 'j' [-Wunused-variable]
    8 |     int i, j, k, temp;
      |            ^
/in/foo.c:7:9: warning: variable 'newArray' set but not used [-Wunused-but-set-variable]
    7 |     int newArray[30];     // 新数组(n+m个元素)
      |         ^~~~~~~~

信息

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