Submission #868032

# Submission time Handle Problem Language Result Execution time Memory
868032 2023-10-30T09:23:03 Z MongHwa 짝수 정렬 (tutorial3) C++17
Compilation error
0 ms 0 KB
#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

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