Record Detail

Compile Error

/in/inDictionary.c: In function 'main':
/in/inDictionary.c:22:41: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
   if (fgets(ch, sizeof(ch), fp) != NULL);
                                         ^
/in/inDictionary.c:22:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (fgets(ch, sizeof(ch), fp) != NULL);
   ^~
/in/inDictionary.c:23:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   {
   ^
/in/inDictionary.c:8:6: error: unused variable 'Ret' [-Werror=unused-variable]
  int Ret = 0;
      ^~~
cc1: all warnings being treated as errors

Information

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