Record Detail

Compile Error

/in/main.c: In function 'main':
/in/main.c:27:13: error: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[3]' [-Werror=format=]
     scanf("%s%d",&con[i].name,&con[i].r);
             ^
/in/main.c:52:8: error: 'a[2]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if(whowin(k,con[a[2]].r,con[b].r)==1){
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/main.c:43:8: error: 'a[1]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if(whowin(k,con[a[1]].r,con[b].r)==1){
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Information

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