Submission #145844

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

Compilation message (stderr)

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