제출 #1287586

#제출 시각아이디문제언어결과실행 시간메모리
1287586hoangphuc210108선물 (IOI25_souvenirs)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; if (!(cin >> N)) return 0; // đọc dãy P (không dùng trong phiên bản không tương tác) for (int i = 0; i < N; ++i) { long long x; cin >> x; } // In kết quả: Q[i] = i for (int i = 0; i < N; ++i) { if (i) cout << ' '; cout << i; } cout << '\n'; return 0; }

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

/usr/bin/ld: /tmp/cchqtITs.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cczQagUB.o:souvenirs.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cchqtITs.o: in function `main':
stub.cpp:(.text.startup+0x99): undefined reference to `buy_souvenirs(int, long long)'
collect2: error: ld returned 1 exit status