Submission #3179

# Submission time Handle Problem Language Result Execution time Memory
3179 2013-08-27T10:53:28 Z cki86201 짝수 정렬 (tutorial3) C++
Compilation error
0 ms 0 KB
#include<algorithm>
void sort_even(int N, int *A){
  std::sort(A,A+N);
  int i;
  for(i=0;i<N;i++){
    if(A[i]&1==0)Report(A[i]);
  }
}

Compilation message

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:6:16: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
tutorial3.cpp:6:29: error: 'Report' was not declared in this scope