Submission #4963

#TimeUsernameProblemLanguageResultExecution timeMemory
4963lingxiang짝수 정렬 (tutorial3)C++98
Compilation error
0 ms0 KiB
#include "grader.h"
#include<algorithm>

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

Compilation message (stderr)

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