Record Detail

Compile Error

/in/mySqrt.c: In function 'mySqrt':
/in/mySqrt.c:4:13: error: format '%d' expects argument of type 'int *', but argument 2 has type 'double *' [-Werror=format=]
     scanf("%d",&x);
            ~^  ~~
            %le
/in/mySqrt.c:7:12: error: implicit declaration of function 'abs' [-Werror=implicit-function-declaration]
     while (abs(y1-y2) > 0.00001){
            ^~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:33:17
Judged At
2022-07-08 16:06:04
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes