제출 #1149678

#제출 시각아이디문제언어결과실행 시간메모리
1149678D1fyyyA + B (IOI24_aplusb)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

using namespace std;
#define int long long

const int MXN = 1e5 + 1;
const int INF = 1e13 + 7;

void slv() {
	int a, b; cin >> a >> b;
	cout << a + b << endl;
}

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr); cout.tie(nullptr);
	int t = 1; //cin >> t;
	while (t--) slv();
}

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

/usr/bin/ld: /tmp/cc63SGAT.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccTyI45u.o:aplusb.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc63SGAT.o: in function `main':
grader.cpp:(.text.startup+0x160): undefined reference to `sum(int, int)'
collect2: error: ld returned 1 exit status