제출 #1274503

#제출 시각아이디문제언어결과실행 시간메모리
1274503linhhnt11072010선물 (IOI25_souvenirs)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; pair<vector<int>, ll> transaction(long long m){ } void buy_souvenirs(int n, ll p0){ transaction(p0-1); }

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

souvenirs.cpp: In function 'std::pair<std::vector<int>, long long int> transaction(long long int)':
souvenirs.cpp:5:1: warning: no return statement in function returning non-void [-Wreturn-type]
    5 | }
      | ^
/usr/bin/ld: /tmp/cc6LxU1B.o: in function `transaction(long long)':
stub.cpp:(.text+0x200): multiple definition of `transaction(long long)'; /tmp/ccvbiFtn.o:souvenirs.cpp:(.text.unlikely+0x0): first defined here
collect2: error: ld returned 1 exit status