/in/foo.c: In function 'main':
/in/foo.c:27:11: error: invalid type argument of '->' (have 'queue {aka struct queue}')
qsort(sou->price,n);
^~
/in/foo.c:27:2: error: too few arguments to function 'qsort'
qsort(sou->price,n);
^~~~~
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)
^