제출 #604253

#제출 시각아이디문제언어결과실행 시간메모리
604253HunterXDArranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; typedef double long dl; #define f first #define s second #define pb push_back #define sz(x) int((x).size()) #define all(x) begin(x), end(x) #define ts to_string #define lb lower_bound #define ub upper_bound #define yes cout << 'Y' << 'E' << 'S' << endl #define no cout << 'N' << 'O' << endl #define nd "\n" const int pmod = 998244353; const int mod = 1e9 + 7; const ll inf = 1e18; ll count_swaps(vector<ll> shoes) { if (shoes[0] > 0 && shoes.size() == 2) { return 1; } return 0; }

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

/usr/bin/ld: /tmp/cc7YnlVg.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