Submission #14801

# Submission time Handle Problem Language Result Execution time Memory
14801 2015-06-26T07:38:39 Z aloshipda 짝수 정렬 (tutorial3) C++
Compilation error
0 ms 0 KB
#include <algorithm>
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:7:32: error: ‘Report’ was not declared in this scope
   if(A[i] % 2 == 0) Report(A[i]);
                                ^