/ Vijos /

记录详情

Compile Error

/in/foo.c:3:16: error: expected ';', ',' or ')' before 'arr'
 int sort(int[] arr,int length) {
                ^~~
/in/foo.c:10:15: error: expected ';', ',' or ')' before 'arr'
 int pop(int[] arr, int length ) {
               ^~~
/in/foo.c:17:16: error: expected ';', ',' or ')' before 'arr'
 int push(int[] arr,int length,int val) {
                ^~~
/in/foo.c:23:16: error: expected ';', ',' or ')' before 'arr'
 int sink(int[] arr,int k,int n) {
                ^~~
/in/foo.c:35:16: error: expected ';', ',' or ')' before 'arr'
 int swap(int[] arr,int a,int b) {
                ^~~
/in/foo.c: In function 'main':
/in/foo.c:52:2: warning: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
  sort(a,length);
  ^~~~
/in/foo.c:56:9: warning: implicit declaration of function 'pop' [-Wimplicit-function-declaration]
    tmp+=pop(a,length--);
         ^~~
/in/foo.c:59:3: warning: implicit declaration of function 'push' [-Wimplicit-function-declaration]
   push(a,length++,tmp);
   ^~~~

信息

递交者
类型
递交
题目
P1097 合并果子
语言
C
递交时间
2020-11-12 23:07:26
评测时间
2020-11-12 23:07:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes