Record Detail

Compile Error

/in/main.c: In function 'main':
/in/main.c:16:11: error: implicit declaration of function 'time' [-Werror=implicit-function-declaration]
     srand(time(NULL));
           ^~~~
/in/main.c:14:12: error: variable 'rate' set but not used [-Werror=unused-but-set-variable]
     double rate;
            ^~~~
/in/main.c:15:13: error: 'r2' is used uninitialized in this function [-Werror=uninitialized]
     rate=(r2+k)/(r1+r2+k);
          ~~~^~~
/in/main.c:15:13: error: 'k' is used uninitialized in this function [-Werror=uninitialized]
/in/main.c:15:20: error: 'r1' is used uninitialized in this function [-Werror=uninitialized]
     rate=(r2+k)/(r1+r2+k);
                  ~~^~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab 5
Language
C
Submit At
2018-06-28 16:57:23
Judged At
2018-06-28 16:57:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes