Submission #2656

#TimeUsernameProblemLanguageResultExecution timeMemory
2656domece짝수 정렬 (tutorial3)C11
Compilation error
0 ms0 KiB
void sort_even(int N, int *A){ int i,j; qsort(A,N,4,c); for(i=0;i<N;i++){ int tmp=A[i]; int index=i; for(j=1;j<N;j++){ if(tmp>A[j]) tmp=A[j],index=j; } A[i]^=A[index]^=A[i]^=A[index]; if(A[i]%2==0) Report(A[i]); } }

Compilation message (stderr)

tutorial3.c: In function 'sort_even':
tutorial3.c:3:1: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
tutorial3.c:3:13: error: 'c' undeclared (first use in this function)
tutorial3.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
tutorial3.c:10:5: warning: operation on '*(A + (long unsigned int)((long unsigned int)i * 4ul))' may be undefined [-Wsequence-point]
tutorial3.c:11:1: warning: implicit declaration of function 'Report' [-Wimplicit-function-declaration]