Submission #313562

#TimeUsernameProblemLanguageResultExecution timeMemory
313562kylych03Friend (IOI14_friend)C++14
Compilation error
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]; }

Compilation message (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