Submission #4963

# Submission time Handle Problem Language Result Execution time Memory
4963 2014-01-23T16:04:48 Z lingxiang 짝수 정렬 (tutorial3) C++
Compilation error
0 ms 0 KB
#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

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'