Record Detail

Compile Error

/in/Q1.c: In function 'main':
/in/Q1.c:5:13: error: format '%d' expects a matching 'int *' argument [-Werror=format=]
     scanf("%d %d.&a,b");
            ~^
/in/Q1.c:5:16: error: format '%d' expects a matching 'int *' argument [-Werror=format=]
     scanf("%d %d.&a,b");
               ~^
/in/Q1.c:7:14: error: format '%d' expects a matching 'int' argument [-Werror=format=]
     printf("%d\n,sum");
             ~^
/in/Q1.c:4:13: error: variable 'sum' set but not used [-Werror=unused-but-set-variable]
     int a,b,sum;
             ^~~
/in/Q1.c:6:8: error: 'a' is used uninitialized in this function [-Werror=uninitialized]
     sum=a+b;
     ~~~^~~~
/in/Q1.c:6:8: error: 'b' is used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab7
Language
C
Submit At
2020-06-28 13:29:20
Judged At
2020-06-28 15:48:57
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes