제출 #1175102

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

int sum(int A, int B) {
  return A + B - 1;
}

int main(){
  int A,B; std::cin>>A>>B;
  std::cout<<sum(A,B);
  return 0;
}

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

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