Record Detail

Compile Error

/in/hash.c:77:24: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
        if (tar->p.key =! key){
            ~~~~~~~~~~~^~~~~~
/in/hash.c:77:24: note: place parentheses around the assignment to silence this warning
        if (tar->p.key =! key){
                       ^
            (                )
/in/hash.c:77:24: note: use '==' to turn this assignment into an equality comparison
        if (tar->p.key =! key){
                       ^
                       ==
/in/hash.c:84:12: error: incompatible pointer types returning 'BUCKET *' (aka 'struct bucket *') from a function with result type 'PAIR *' (aka 'struct pair *') [-Werror,-Wincompatible-pointer-types]
    return tar;
           ^~~
2 errors generated.

Information

Submit By
Type
Submission
Homework
Lab1
Language
C (Clang, with memory check)
Submit At
2019-09-20 11:15:38
Judged At
2019-09-20 11:15:38
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes