제출 #129333

#제출 시각아이디문제언어결과실행 시간메모리
129333antimirage친구 (IOI14_friend)C++14
컴파일 에러
0 ms0 KiB
#include "friend.h" #include "grader.cpp" #include <bits/stdc++.h> #define fr first #define sc second #define mk make_pair #define pb push_back #define all(s) s.begin(), s.end() using namespace std; int findSample(int n, int val[], int batya[], int type[]) { int ans = 0; if (type[1] == 1) { for (int i = 1; i < n; i++) { ans += val[i]; } } else { for (int i = 1; i < n; i++) { ans = max(ans, val[i]); } } return ans; }

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

/tmp/ccci9J8I.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccaYXEPc.o:friend.cpp:(.text.startup+0x0): first defined here
/tmp/ccci9J8I.o:(.bss+0xc3540): multiple definition of `confidence'
/tmp/ccaYXEPc.o:(.bss+0xc3540): first defined here
/tmp/ccci9J8I.o:(.bss+0x61aa0): multiple definition of `host'
/tmp/ccaYXEPc.o:(.bss+0x61aa0): first defined here
/tmp/ccci9J8I.o:(.bss+0x0): multiple definition of `protocol'
/tmp/ccaYXEPc.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status