제출 #714369

#제출 시각아이디문제언어결과실행 시간메모리
714369Swan순열 (APIO22_perm)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> #include <vector> #include <stack> #include <algorithm> #include <string> #include <set> #include <map> #include <list> #include <time.h> #include <math.h> #include <random> #include <deque> #include <queue> #include <cassert> #include <unordered_map> #include <unordered_set> #include <iomanip> #include <bitset> #include <sstream> #include <chrono> #include <cstring> //#define int long long #define INP freopen("palpath.in","r",stdin) #define OUTP freopen("palpath.out","w",stdout) using ld = long double; using LD = ld; using namespace std; vector<int> construct_permutation(long long k) { bitset<64> bits (k); int mx = 0; for (int i = 0; i < 64; i++) { if (bits[i]) { mx = i; } } vector<int> res; for (int i = 0; i < mx; i++) { res.push_back(i); } for (int i = mx - 1; i >= 0; i--) { if (!bits[i]) { continue; } int resSize = res.size(); for (int j = 0; j < resSize; j++) { if(res[j] >= i) { res[j]++; } } res.push_back(i); } return res; } int main() { }

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

/usr/bin/ld: /tmp/ccbEB5a3.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccir8jW2.o:perm.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status