Submission #100319

# Submission time Handle Problem Language Result Execution time Memory
100319 2019-03-10T11:40:14 Z CloneOfTeacher 짝수 정렬 (tutorial3) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

void sort_even(int N, int *A)
{
	int i;
	sort(A, A + N);
	for(i = 0; i < N; i++)
    {
		if(A[i] % 2 == 0)
		{
		    Report(A[i]);
		}
	}
}

Compilation message

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:12:7: error: 'Report' was not declared in this scope
       Report(A[i]);
       ^~~~~~
tutorial3.cpp:12:7: note: suggested alternative: 'qsort'
       Report(A[i]);
       ^~~~~~
       qsort