0_0_39386509_109.cpp: In function 'int main()':
0_0_39386509_109.cpp:8:35: error: 'pi' was not declared in this scope; did you mean 'std::numbers::pi'?
8 | ans = 4.0 / 3.0 * pi * r * r * r;
| ^~
| std::numbers::pi
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/max_size_type.h:37,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:39,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:125:27: note: 'std::numbers::pi' declared here
125 | inline constexpr double pi = pi_v<double>;
| ^~
|