Problem mathexam
User kahchun
Submission Time 2024-01-21 09:57:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathexam.cpp: In function ‘int32_t main()’:
mathexam.cpp:45:32: error: expected initializer before ‘B’
45 | bigfloat a = smolA, bigfloat B = smolB, res;
| ^
mathexam.cpp:49:4: error: ‘res’ was not declared in this scope
49 | res = (a + b) / 2;
| ^~~
mathexam.cpp:49:15: error: ‘b’ was not declared in this scope
49 | res = (a + b) / 2;
| ^
mathexam.cpp:55:4: error: ‘res’ was not declared in this scope
55 | res = sqrt((a * a) + (b * b));
| ^~~
mathexam.cpp:55:26: error: ‘b’ was not declared in this scope
55 | res = sqrt((a * a) + (b * b));
| ^
mathexam.cpp:61:24: error: ‘b’ was not declared in this scope
61 | bigfloat A = a, B = b, C = (a - b);
| ^
mathexam.cpp:63:37: error: ‘C’ was not declared in this scope
63 | bigfloat D = ((B * B) - (4 * A * C));