Record Detail

Compile Error

/in/ex3.c: In function 'main':
/in/ex3.c:17:25: error: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Werror=format=]
     printf("$20 bills: %d",&a);
                        ~^  ~~
                        %ls
/in/ex3.c:18:25: error: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Werror=format=]
     printf("$10 bills: %d",&b);
                        ~^  ~~
                        %ls
/in/ex3.c:19:24: error: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Werror=format=]
     printf("$5 bills: %d",&c);
                       ~^  ~~
                       %ls
/in/ex3.c:20:24: error: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Werror=format=]
     printf("$1 bills: %d",&e);
                       ~^  ~~
                       %ls
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 4
Language
C
Submit At
2022-06-25 23:27:16
Judged At
2022-06-29 06:52:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes