Submission #145850

#TimeUsernameProblemLanguageResultExecution timeMemory
145850lkm06042짝수 정렬 (tutorial3)C++14
100 / 100
2 ms396 KiB
#include <iostream> #include <vector> #include <algorithm> #include "grader.h" using namespace std; int sort_even(int N, int *A){ vector<int> even; for (int i = 0; i < N; i++){ if (A[i] % 2 == 0){ even.push_back(A[i]); } } sort(even.begin(), even.end()); for (auto it : even) { Report(it); } }

Compilation message (stderr)

tutorial3.cpp: In function 'int sort_even(int, int*)':
tutorial3.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...