Record Detail

Compile Error

/in/inDictionary.c: In function 'main':
/in/inDictionary.c:20:27: error: assignment to expression with array type
             w[count].dict = w[i].name;
                           ^
/in/inDictionary.c:24:38: error: lvalue required as left operand of assignment
                 if(strlen(w[i].name) = strlen(w[j].dict)&&strcmp(w[i].name,w[j].dict) == 0)){
                                      ^
/in/inDictionary.c:24:92: error: expected statement before ')' token
                 if(strlen(w[i].name) = strlen(w[j].dict)&&strcmp(w[i].name,w[j].dict) == 0)){
                                                                                            ^
/in/inDictionary.c:24:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
                 if(strlen(w[i].name) = strlen(w[j].dict)&&strcmp(w[i].name,w[j].dict) == 0)){
                 ^~
/in/inDictionary.c:24:93: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
                 if(strlen(w[i].name) = strlen(w[j].dict)&&strcmp(w[i].name,w[j].dict) == 0)){
                                                                                             ^
/in/inDictionary.c:32:31: error: assignment to expression with array type
                 w[count].dict = w[i].name;
                               ^
/in/inDictionary.c:38:1: error: expected declaration or statement at end of input
 }
 ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Problem
mid2 ex1
Homework
Mid2
Language
C
Submit At
2023-07-13 15:42:50
Judged At
2023-08-05 22:15:25
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes