Submission #1007614

#TimeUsernameProblemLanguageResultExecution timeMemory
1007614nomuluun앵무새 (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; void send(int a){ } void output(int b){ } void encode(int N, int M[]){ for(int i=0; i<N; i++){ if(M[i]==1)send(i); } } void decode(int N, int L, int X[]){ bool b[N+5]; for(int i=0; i<L; i++){ b[X[i]]=1; } for(int i=0; i<N; i++){ if(b[i]==1)output(1); else output(0); } }
#include<bits/stdc++.h> using namespace std; void send(int a){ } void output(int b){ } void encode(int N, int M[]){ for(int i=0; i<N; i++){ if(M[i]==1)send(i); } } void decode(int N, int L, int X[]){ bool b[N+5]; for(int i=0; i<L; i++){ b[X[i]]=1; } for(int i=0; i<N; i++){ if(b[i]==1)output(1); else output(0); } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cci5Ha45.o: in function `send(int)':
encoder.cpp:(.text+0x0): multiple definition of `send(int)'; /tmp/ccQkyvP5.o:grader_encoder.cpp:(.text+0xa0): first defined here
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/ccYG03sR.o: in function `output(int)':
decoder.cpp:(.text+0x10): multiple definition of `output(int)'; /tmp/ccU3LZlQ.o:grader_decoder.cpp:(.text+0x40): first defined here
collect2: error: ld returned 1 exit status