Record Detail

Compile Error

/in/inDictionary.c: In function 'main':
/in/inDictionary.c:6:9: error: statement with no effect [-Werror=unused-value]
     argc<=20;
     ~~~~^~~~
/in/inDictionary.c:14:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int j=0;j<=strlen(argv[i])-1;j++){
                      ^~
/in/inDictionary.c:9:9: error: unused variable 'c' [-Werror=unused-variable]
     int c;
         ^
/in/inDictionary.c:8:9: error: unused variable 'temp' [-Werror=unused-variable]
     int temp=0;
         ^~~~
/in/inDictionary.c:7:10: error: variable 'dictionary' set but not used [-Werror=unused-but-set-variable]
     char dictionary[20][1000];
          ^~~~~~~~~~
cc1: all warnings being treated as errors

Information

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