Submission #868032

#TimeUsernameProblemLanguageResultExecution timeMemory
868032MongHwa짝수 정렬 (tutorial3)C++17
Compilation error
0 ms0 KiB
#include <vector> #include <algorithm> using namespace std; void sort_even(int N, int *A) { vector<int> v; for(int i = 0; i < N; i++) if(A[i] % 2 == 0) v.push_back(A[i]); sort(v.begin(), v.end()); for(int i = 0; i < (int)v.size(); i++) Report(v[i]); }

Compilation message (stderr)

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:15:3: error: 'Report' was not declared in this scope
   15 |   Report(v[i]);
      |   ^~~~~~