Record Detail

Compile Error

/in/bigint.c: In function 'max':
/in/bigint.c:12:17: error: expected ':' before ';' token
     return a>b?a;b;
                 ^
/in/bigint.c:12:18: error: statement with no effect [-Werror=unused-value]
     return a>b?a;b;
                  ^
/in/bigint.c: In function 'clear':
/in/bigint.c:16:1: error: expected ';' before '}' token
 }
 ^
/in/bigint.c: In function 'scan':
/in/bigint.c:27:9: error: unused variable 'len' [-Werror=unused-variable]
     int len=strlen(s);
         ^~~
/in/bigint.c: In function 'construct':
/in/bigint.c:30:22: error: unused parameter 'x' [-Werror=unused-parameter]
 BigInt construct(int x){
                      ^
/in/bigint.c: In function 'add':
/in/bigint.c:35:19: error: unused parameter 'a' [-Werror=unused-parameter]
 BigInt add(BigInt a,BigInt b){
                   ^
/in/bigint.c:35:28: error: unused parameter 'b' [-Werror=unused-parameter]
 BigInt add(BigInt a,BigInt b){
                            ^
/in/bigint.c: In function 'mul':
/in/bigint.c:40:19: error: unused parameter 'a' [-Werror=unused-parameter]
 BigInt mul(BigInt a,BigInt b){
                   ^
/in/bigint.c:40:28: error: unused parameter 'b' [-Werror=unused-parameter]
 BigInt mul(BigInt a,BigInt b){
                            ^
/in/bigint.c: In function 'max':
/in/bigint.c:13:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
/in/bigint.c: In function 'mul':
/in/bigint.c:42:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Problem
Arbitrary Precision Integer Arithmetic
Homework
Lab 8
Language
C
Submit At
2020-07-07 20:54:26
Judged At
2020-07-07 20:54:26
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes