Submission #1141750

#TimeUsernameProblemLanguageResultExecution timeMemory
1141750Mike_VuArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#ifndef mikevui // #include "task.h" #endif // mikevui #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double dou; #define pii pair<int, int> #define fi first #define se second #define pb push_back #define MASK(x) (1LL<<(x)) #define BITj(x, j) (((x)>>(j))&1) #define ALL(v) (v).begin(), (v).end() template<typename T> bool maximize(T &x, const T &y) { if (x < y) {x = y; return 1;} return 0; } template<typename T> bool minimize(T &x, const T &y) { if (x > y) {x = y; return 1;} return 0; } ll count_swaps(int S[]) { return 1LL; } #ifdef mikevui int main() { ios_base::sync_with_stdio(0); cin.tie(0); #define name "task" if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); } } #endif // mikevui

Compilation message (stderr)

/usr/bin/ld: /tmp/cc2OgIxk.o: in function `main':
grader.cpp:(.text.startup+0x288): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status