Problem mathexam
User ARock
Submission Time 2024-02-02 13:39:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathexam.cpp: In function ‘int32_t main()’:
mathexam.cpp:41:10: error: request for member ‘to_string’ in ‘f’, which is of non-class type ‘double’
41 | if (f.to_string() == "-0.00") f = 0.00;
| ^~~~~~~~~
mathexam.cpp:42:10: error: request for member ‘to_string’ in ‘s’, which is of non-class type ‘double’
42 | if (s.to_string() == "-0.00") s = 0.00;
| ^~~~~~~~~