Problem shortest
User PlayVoltz
Submission Time 2023-07-29 08:25:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shortest.cpp: In function ‘int main()’:
shortest.cpp:7:14: error: no matching function for call to ‘sqrt(std::string&)’
7 | cout<<sqrt(s);
| ^
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 shortest.cpp:1:
/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_64-linux-gnu/c++/9/bits/stdc++.h:41,
from shortest.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: no known conversi