Submission #1007604

# Submission time Handle Problem Language Result Execution time Memory
1007604 2024-06-25T09:11:35 Z nomuluun Parrots (IOI11_parrots) C++14
Compilation error
0 ms 0 KB
#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

/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