Submission #1007604

#TimeUsernameProblemLanguageResultExecution timeMemory
1007604nomuluunParrots (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); } }

Compilation message (stderr)

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

/usr/bin/ld: /tmp/ccmuziUA.o: in function `main':
grader_decoder.cpp:(.text.startup+0x1ef): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status