/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:27:11: error: invalid type argument of '->' (have 'queue {aka struct queue}')
  qsort(sou->price);
           ^~
/in/foo.c:27:2: error: too few arguments to function 'qsort'
  qsort(sou->price);
  ^~~~~
In file included from /in/foo.c:2:0:
/usr/include/stdlib.h:725:13: note: declared here
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
/in/foo.c:30:20: error: 'queue {aka struct queue}' has no member named 'haed'; did you mean 'head'?
    if(sou.price[sou.haed]+sou.price[sou.tail]<=w)
                    ^

信息

递交者
类型
递交
题目
P1409 纪念品分组
语言
C
递交时间
2020-11-20 11:30:26
评测时间
2020-11-20 11:30:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes