제출 #1156048

#제출 시각아이디문제언어결과실행 시간메모리
1156048fingolfin42A + B (IOI24_aplusb)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
int sum(int a, int b){
  return a+b;
}
int main(){
  int a, b;
  cin >> a >> b;
  int r=sum(a, b);
  cout << r << endl;
  return 0;
}

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

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