제출 #868032

#제출 시각아이디문제언어결과실행 시간메모리
868032MongHwa짝수 정렬 (tutorial3)C++17
컴파일 에러
0 ms0 KiB
#include <vector> #include <algorithm> using namespace std; void sort_even(int N, int *A) { vector<int> 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 < (int)v.size(); i++) Report(v[i]); }

컴파일 시 표준 에러 (stderr) 메시지

tutorial3.cpp: In function 'void sort_even(int, int*)':
tutorial3.cpp:15:3: error: 'Report' was not declared in this scope
   15 |   Report(v[i]);
      |   ^~~~~~