Record Detail

Compile Error

/in/mySqrt.c: In function 'main':
/in/mySqrt.c:11:10: error: 'x' is used uninitialized in this function [-Werror=uninitialized]
     y = x/2;
         ~^~
/in/mySqrt.c:12:16: error: 'temp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     while((temp-y)>=0.001||(temp-y)<=0.001){
           ~~~~~^~~
cc1: all warnings being treated as errors

Information

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