Submission #145860

#TimeUsernameProblemLanguageResultExecution timeMemory
145860ps_penguin짝수 정렬 (tutorial3)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include <iostream> using namespace std; void sort_even(int N, int *A) { int i; sort(A,A+N); for(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:7:8: error: 'sort' was not declared in this scope
        sort(A,A+N);
        ^~~~
tutorial3.cpp:7:8: note: suggested alternative: 'qsort'
        sort(A,A+N);
        ^~~~
        qsort