Submission #525234

#TimeUsernameProblemLanguageResultExecution timeMemory
525234pokmui9909짝수 정렬 (tutorial3)C++17
100 / 100
1 ms292 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; using ll = long long; void sort_even(int N, int *A){ vector<ll> V; for(int i = 0; i < N; i++){ if(A[i] % 2 == 0){ V.push_back(A[i]); } } sort(V.begin(), V.end()); for(int i = 0; i < V.size(); i++){ Report(V[i]); } }

Compilation message (stderr)

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |     for(int i = 0; i < V.size(); i++){
      |                    ~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...