记录详情

Compile Error

/in/foo.c:25:1: error: expected identifier or '(' before '}' token
 }  
 ^
/in/foo.c: In function 'main':
/in/foo.c:30:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("");  
            ^~
/in/foo.c:32:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("", n1);  
            ^~
/in/foo.c:35:22: error: 'a1' undeclared (first use in this function)
         scanf("%d", &a1[i]);  
                      ^~
/in/foo.c:35:22: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:37:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("");  
            ^~
/in/foo.c:39:12: warning: too many arguments for format [-Wformat-extra-args]
     printf("\n", n2);  
            ^~~~
/in/foo.c:42:22: error: 'a2' undeclared (first use in this function)
         scanf("%d", &a2[i]);  
                      ^~
/in/foo.c:44:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("");  
            ^~
/in/foo.c:46:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("", n3);  
            ^~
/in/foo.c:49:22: error: 'a3' undeclared (first use in this function)
         scanf("%d", &a3[i]);  
                      ^~
/in/foo.c:52:27: error: 'merged1' undeclared (first use in this function)
     Merge(a1, n1, a2, n2, merged1);  
                           ^~~~~~~
/in/foo.c:53:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("");  
            ^~
/in/foo.c:59:27: error: 'merged2' undeclared (first use in this function)
     Merge(a1, n1, a3, n3, merged2);  
                           ^~~~~~~
/in/foo.c:60:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
     printf("");  
            ^~

信息

递交者
类型
递交
题目
A10-1 有序数组的合并
比赛
泰院2405作业赛第二场
语言
C
递交时间
2024-10-29 08:29:01
评测时间
2024-10-29 08:29:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes