Submission #717856

#TimeUsernameProblemLanguageResultExecution timeMemory
717856EntityPlantt짝수 정렬 (tutorial3)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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]);
      |                                                ^~~~~~