제출 #1045843

#제출 시각아이디문제언어결과실행 시간메모리
1045843Sputnik123Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "shoes.h" //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> #define pb push_back #define in insert #define pll pair<ll,ll> #define vpl vector<pll> #define vll vector <ll> #define vl vector<ll> #define F first #define ll long long #define S second #define all(v) v.begin(),v.end() #define endl "\n" #define ull unsigned long long #define ld long double using namespace std; //using namespace __gnu_pbds; #pragma GCC optimize("Ofast,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt,fma") const ll sz=3e5+5; const ll inf=1e18; const ll mod=1e9+7; const ll mod2=998244353; const ll eps = 1e-12; const ll P1=47; // for hashing const ll P2=41; // for hashing //template<class T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; //template<class T> using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>; // ll idx = 1; long long count_swaps(vector<ll> s) { ll n = s.size(); return n * (n - 1) / 2; }

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

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