제출 #1175115

#제출 시각아이디문제언어결과실행 시간메모리
1175115khonthaikubA + B (IOI24_aplusb)C++20
컴파일 에러
0 ms0 KiB
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <bits/stdc++.h> using namespace std; int sum(int a , int b){ cout << a + b; return a+b; } int main() { sum(1,1); return 0; }

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

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