제출 #1233583

#제출 시각아이디문제언어결과실행 시간메모리
1233583Account상형문자열 (IOI24_hieroglyphs)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; vector<int> ucs(vector<int> a, vector<int> b){ vector<int> r; if (a == b){ r = a; } return r; } int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; cin>>n>>m; vector<int> a(n); vector<int> b(m); for(int i = 0; i < n; ++i){ cin>>a[i]; } for(int i = 0; i < m; ++i){ cin>>b[i]; } vector<int> r = ucs(a,b); if(r.size() != 0){ cout<<n<<endl; for (int i: r) cout<<i<<" "; } else{ cout<<-1; } }

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

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