Problem mathexam
User dacashew
Submission Time 2024-02-02 10:22:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathexam.cpp: In function ‘int main()’:
mathexam.cpp:135:29: error: no matching function for call to ‘sqrt(long double (&)(long long int, long long int))’
135 | max(llround(((-b + sqrt(d)) / (2 * a)) * 100) / (long double)100,llround(((-b - sqrt(d)) / (2 * a)) * 100) / (long double)100)
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from mathexam.cpp:59:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: candidate: ‘double sqrt(double)’
143 | __MATHCALL (sqrt,, (_Mdouble_ __x));
| ^~~~~~~~~~
In file included from /usr/include/c++/9/cmath:45,
from /usr/include/x86_6