Submission #8565

#TimeUsernameProblemLanguageResultExecution timeMemory
8565a555짝수 정렬 (tutorial3)C++98
Compilation error
0 ms0 KiB
#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 (stderr)

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'