제출 #463522

#제출 시각아이디문제언어결과실행 시간메모리
463522fuad27Triangles (CEOI18_tri)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include"trilib.c" typedef long long ll; typedef long double ld; #define vii vector<pair<int, int>> #define vi vector<int> #define vl vector<long long> #define vll vector<pair<long long, long long>> #define mp make_pair #define pb push_back #define rep(i, a, b) for(int i = a;i<=b;i++) #define f first #define s second #define FIO ios_base::sync_with_stdio(0);cin.tie(0); #define start int tt;cin>>tt;rep(testcase, 1, tt) #define print(k) cout<<"Case #"<<testcase<<": "<<k<<"\n"; #define endl "\n" #define DEBUG(k) cerr<<k<<"\n"; int main () { int n = get_n(), ans = 0; rep(i, 1, n) { rep(j, i+1, n) { bool check = true; rep(k, 1, n) { if(k == i or k == j)continue; check &= !is_clockwise(i, j, k); } ans+=check; } } give_answer(ans*2); }

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

/usr/bin/ld: /tmp/cc2N41TJ.o: in function `get_n':
tri.cpp:(.text+0x120): multiple definition of `get_n'; /tmp/cc0kLmZJ.o:trilib.c:(.text+0x120): first defined here
/usr/bin/ld: /tmp/cc2N41TJ.o: in function `is_clockwise':
tri.cpp:(.text+0x190): multiple definition of `is_clockwise'; /tmp/cc0kLmZJ.o:trilib.c:(.text+0x190): first defined here
/usr/bin/ld: /tmp/cc2N41TJ.o: in function `give_answer':
tri.cpp:(.text+0x2f0): multiple definition of `give_answer'; /tmp/cc0kLmZJ.o:trilib.c:(.text+0x2f0): first defined here
collect2: error: ld returned 1 exit status