Record Detail

Compile Error

/in/isSibling.c: In function 'isSibling':
/in/isSibling.c:9:26: warning: passing argument 1 of 'qsort' makes pointer from integer without a cast [-Wint-conversion]
         *phrase1 = qsort(*phrase1);
                          ^
In file included from /in/isSibling.c:2:0:
/usr/include/stdlib.h:827:13: note: expected 'void *' but argument is of type 'char'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
/in/isSibling.c:9:20: error: too few arguments to function 'qsort'
         *phrase1 = qsort(*phrase1);
                    ^~~~~
In file included from /in/isSibling.c:2:0:
/usr/include/stdlib.h:827:13: note: declared here
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
/in/isSibling.c:10:26: warning: passing argument 1 of 'qsort' makes pointer from integer without a cast [-Wint-conversion]
         *phrase2 = qsort(*phrase2);
                          ^
In file included from /in/isSibling.c:2:0:
/usr/include/stdlib.h:827:13: note: expected 'void *' but argument is of type 'char'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
/in/isSibling.c:10:20: error: too few arguments to function 'qsort'
         *phrase2 = qsort(*phrase2);
                    ^~~~~
In file included from /in/isSibling.c:2:0:
/usr/include/stdlib.h:827:13: note: declared here
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
/in/isSibling.c:12:19: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
         if(strcmp(*phrase1, *phrase2) == 0){
                   ^
In file included from /in/isSibling.c:3:0:
/usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'char'
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~
/in/isSibling.c:12:29: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
         if(strcmp(*phrase1, *phrase2) == 0){
                             ^
In file included from /in/isSibling.c:3:0:
/usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'char'
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:32:57
Judged At
2022-07-08 16:05:52
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes