Record Detail

Compile Error

/in/inDictionary.c: In function 'main':
/in/inDictionary.c:19:36: error: format '%c' expects argument of type 'char *', but argument 3 has type 'char **' [-Werror=format=]
             while (fscanf(stdin, "%c", &argv[i]) != EOF);// { printf("%c", argv[i]); }
                                   ~^   ~~~~~~~~
/in/inDictionary.c:22:27: error: expected expression before ']' token
         while(fscanf(argv[],"%c",Word->word) != EOF) {printf("%c",Word->word);}
                           ^
/in/inDictionary.c:22:38: error: invalid type argument of '->' (have 'struct node')
         while(fscanf(argv[],"%c",Word->word) != EOF) {printf("%c",Word->word);}
                                      ^~
/in/inDictionary.c:22:71: error: invalid type argument of '->' (have 'struct node')
         while(fscanf(argv[],"%c",Word->word) != EOF) {printf("%c",Word->word);}
                                                                       ^~
/in/inDictionary.c:11:14: error: unused parameter 'argc' [-Werror=unused-parameter]
 int main(int argc,char *argv[]) {
              ^~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:37:33
Judged At
2022-07-08 16:06:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes