제출 #313562

#제출 시각아이디문제언어결과실행 시간메모리
313562kylych03친구 (IOI14_friend)C++14
컴파일 에러
0 ms0 KiB
#include "friend.h" #include <bits/stdc++.h> #include "grader.cpp" using namespace std; int findSample(int n,int con[],int host[],int protocol[]){ int res = 0; for(int i = n-1; i>0 ;i--){ if(protocol[i]==0){ res+=con[i]; con[host[i]] = max(0, con[host[i]] - con[i]); } if(protocol[i]==1){ con[host[i]] +=con[i]; } if(protocol[i]==2){ con[host[i]] = max(con[i], con[host[i]]); } } return res + con[0]; }

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

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