79667878

Date: 2025-06-16 15:41:41
Score: 0.5
Natty:
Report link

One way to write the function in modern C++ would be:

void PrintArray(const std::array<int, 4>& arr)
{
    for (const auto elem : arr) {
        std::cout << elem << std::endl;
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SarvanZ