Submission #8565

# Submission time Handle Problem Language Result Execution time Memory
8565 2014-09-17T05:21:28 Z a555 짝수 정렬 (tutorial3) C++
Compilation error
0 ms 0 KB
#include "grader.h"
#include "algorithm"
void sort_even(int N, int *A) {
	int i;
	sort(A, A + N);

	for(i = 0; i < N; i++) {
		if(!(A[i] & 1)) Report(A[i]);
	}
}

Compilation message

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:5:15: error: 'sort' was not declared in this scope
tutorial3.cpp:5:15: note: suggested alternative:
/usr/include/c++/4.6/bits/stl_algo.h:5430:5: note:   'std::sort'