답안 #717856

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
717856 2023-04-02T16:19:31 Z EntityPlantt 짝수 정렬 (tutorial3) C++14
컴파일 오류
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]);
      |                                                ^~~~~~