Submission #1611

#TimeUsernameProblemLanguageResultExecution timeMemory
1611ho94949짝수 정렬 (tutorial3)C++98
Compilation error
0 ms0 KiB
#include<algorithm> #include<vector> using namespace std; void sort_even(int N, int* A){ vector<int> evens; for(int i=0;i<N;i++){ if(A[i]%2==0) evens.push_back(A[i]); } sort(evens.begin(),evens.end()); for(int i=0;i<evens.size();i++){ Report(evens[i]); } return; }

Compilation message (stderr)

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:10: warning: comparison between signed and unsigned integer expressions
tutorial3.cpp:11: error: 'Report' was not declared in this scope