Record Detail

Compile Error

/in/main.c: In function 'ex1':
/in/main.c:25:22: error: iteration 15 invokes undefined behavior [-Werror=aggressive-loop-optimizations]
         C[i].name[0] =a;
         ~~~~~~~~~~~~~^~
/in/main.c:19:5: note: within this loop
     for (i=1;i<17;i++){
     ^~~
/in/main.c:63:10: error: array subscript is above array bounds [-Werror=array-bounds]
         N[j].country = N[12].country;
         ~^~~
/in/main.c:65:12: error: array subscript is above array bounds [-Werror=array-bounds]
     else{ N[j].country = N[13].country;}
           ~^~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab 5
Language
C
Submit At
2018-06-25 21:05:52
Judged At
2018-06-25 21:05:52
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes