Replace the `import std;` module directive with explicit C++17 standard library includes
and substitute `std::println` calls with `std::cout` equivalents to ensure compatibility
with older compiler toolchains. Also add an overloaded `operator<<` for `AnalysisResult`
to enable formatted output via iostream, and convert `std::wifstream::open` to accept a
`std::string` instead of `std::string_view` for broader C++17 support.