Record Detail

Compile Error

/in/main.c: In function 'main':
/in/main.c:41:20: error: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Werror=format=]
         scanf("%s %d",countries[i].name,countries[i].rank);
                    ^
/in/main.c:45:22: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
         nodes[i].left=&nodes[2*i].country;
                      ^
/in/main.c:46:23: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
         nodes[i].right=&nodes[2*i+1].country;
                       ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab 5
Language
C
Submit At
2018-06-27 22:19:11
Judged At
2018-06-27 22:19:11
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes