제출 #1187367

#제출 시각아이디문제언어결과실행 시간메모리
1187367kashfy1234A + B (IOI24_aplusb)C++20
컴파일 에러
0 ms0 KiB
//inshaAllah #include <bits/stdc++.h> using namespace std; void sum(int a, int b){ cout<<a+b<<"\n"; return ; } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a; cin>>a; int b; cin>>b; sum(a,b); }

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

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