제출 #952650

#제출 시각아이디문제언어결과실행 시간메모리
952650batsukh2006Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include<iostream> #include<stdio.h> #include<math.h> #include<map> #include<string> #include<algorithm> #include<vector> #include<string.h> #include<utility> #include<set> #include<cmath> #include<queue> #include<deque> #include<functional> #include<stack> #include<limits.h> #include<iomanip> #include<unordered_map> using namespace std; #define MOD 1000000007 #define int long long #define endl '\n' void solve(){ int n; cin>>n; vector<int> a(n+1); for(int i=1; i<=n; i++) cin>>a[i]; if(a[1]<0) cout<<0; else cout<<1; } signed main(){ // freopen("hps.in", "r", stdin); // freopen("hps.out", "w", stdout); ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t=1; // cin>>t; while(t--){ solve(); cout<<endl; } return 0; }

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

/usr/bin/ld: /tmp/ccUYuV6L.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccZf7QeN.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccUYuV6L.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