Submission #501

#TimeUsernameProblemLanguageResultExecution timeMemory
501pl0892029짝수 정렬 (tutorial3)C++98
Compilation error
0 ms0 KiB
void sort_even(int N,int *A) { int S[100]; int i,j,n=0; for(i=0;i<N;i++) if(A[i]%2==0) S[n++]=A[i]; for(i=n-1;i>0;i--) for(j=0;j<i;j++) if(S[j]>S[j+1]) { S[j+1]+=S[j]; S[j]=S[j+1]-S[j]; S[j+1]-=S[j]; } for(i=0;i<n;i++) Report(S[i]); }

Compilation message (stderr)

grader.cpp:37:2: warning: no newline at end of file
tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:14: error: 'Report' was not declared in this scope