Submission #717856

# Submission time Handle Problem Language Result Execution time Memory
717856 2023-04-02T16:19:31 Z EntityPlantt 짝수 정렬 (tutorial3) C++14
Compilation error
0 ms 0 KB
#include <algorithm>
void sort_even(int n, int a[]) {
  std::sort(a, a + n);
  for (int i = 0; i < n; i++) if (!(a[i] & 1)) Report(a[i]);
}

Compilation message

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:4:48: error: 'Report' was not declared in this scope
    4 |   for (int i = 0; i < n; i++) if (!(a[i] & 1)) Report(a[i]);
      |                                                ^~~~~~