Record Detail

Wrong Answer

/in/ex3.c: In function 'answer':
/in/ex3.c:13:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
     if ((b^2-4*a*c)>=0 ) {
            ~^~~~~~
/in/ex3.c:14:36: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
         k = ((-1 * b) + sqrt(b ^ 2 - 4 * a * c)) / (2 * a);
                                  ~~^~~~~~~~~~~
/in/ex3.c:15:36: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
         j = ((-1 * b) - sqrt(b ^ 2 - 4 * a * c)) / (2 * a);
                                  ~~^~~~~~~~~~~
/in/ex3.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 324.0 KiB
#2 Wrong Answer 1ms 324.0 KiB
#3 Wrong Answer 0ms 328.0 KiB
#4 Wrong Answer 0ms 200.0 KiB
#5 Wrong Answer 0ms 196.0 KiB
#6 Wrong Answer 0ms 196.0 KiB
#7 Wrong Answer 1ms 268.0 KiB
#8 Wrong Answer 0ms 256.0 KiB
#9 Wrong Answer 0ms 200.0 KiB
#10 Wrong Answer 0ms 200.0 KiB

Information

Submit By
Type
Submission
Homework
Assignment 4
Language
C
Submit At
2018-06-21 15:41:48
Judged At
2018-06-21 15:41:48
Judged By
Score
0
Total Time
9ms
Peak Memory
328.0 KiB