Submission #575330

#TimeUsernameProblemLanguageResultExecution timeMemory
575330SilentVisitor짝수 정렬 (tutorial3)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; #define ll long long void sort_even(int n, vector<int> a){ function<void(int, vector<int>)> check = [&](int n, vector<int> a) { vector<int> dp; for(int i = 0; i < n; i += 1){ if(!(a[i] & 1)) dp.push_back(a[i]); } sort(dp.begin(), dp.end()); for(int x : dp) Report(x); }; check(n, a); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccIsdW3M.o: in function `main':
grader.cpp:(.text.startup+0xb3): undefined reference to `sort_even(int, int*)'
collect2: error: ld returned 1 exit status