Problem | mathexam |
---|---|
User | jxlau |
Submission Time | 2024-01-20 14:17:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mathexam.cpp: In function ‘int32_t main()’:
mathexam.cpp:26:5: error: expected ‘,’ or ‘;’ before ‘double’
26 | double discrim = (b*b) - 4.0*a*(a-b);
| ^~~~~~
mathexam.cpp:27:28: error: ‘discrim’ was not declared in this scope
27 | double num = -b + sqrt(discrim);
| ^~~~~~~