Record Detail

Compile Error

/in/Q1.c: In function 'main':
/in/Q1.c:5:18: error: missing terminating " character [-Werror]
     scanf("%d %d"",&a,&b);
                  ^
/in/Q1.c:5:18: error: missing terminating " character
     scanf("%d %d"",&a,&b);
                  ^~~~~~~~~
/in/Q1.c:6:5: error: expected ')' before 'printf'
     printf("%d",a+b);
     ^~~~~~
/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:8:1: error: expected ';' before '}' token
 }
 ^
/in/Q1.c:4:11: error: unused variable 'b' [-Werror=unused-variable]
     int a,b=0;
           ^
/in/Q1.c:4:9: error: unused variable 'a' [-Werror=unused-variable]
     int a,b=0;
         ^
cc1: all warnings being treated as errors

Information

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