Submission #164284

#TimeUsernameProblemLanguageResultExecution timeMemory
164284daddy0h짝수 정렬 (tutorial3)C++11
100 / 100
4 ms380 KiB
/// https://oj.uz/problem/view/tutorial3 #include <bits/stdc++.h> #include "grader.h" using namespace std; void sort_even(int N, int A[]) { vector<int> even; for(int id=0; id<N; ++id) { if(A[id] % 2 == 0) even.push_back(A[id]); } sort(even.begin(), even.end()); if(even.size() == 0) return; else { for(int id=0; id<even.size(); ++id) { Report(even[id]); } } }

Compilation message (stderr)

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:20:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int id=0; id<even.size(); ++id)
                       ~~^~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...