Submission #559330

#TimeUsernameProblemLanguageResultExecution timeMemory
559330Mahmudul_KabirParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include "bits/stdc++.h" using namespace std; #define all(x) x.begin(), x.end() #define pii pair<int,int> #define pb push_back void encode(int N, int M[]) { int i; for(i = 0; i < N; i++){ int x = M[i], bi = 0; vector<int> bin; int d = x; while(d){ bin.pb(d&1); d /= 2; } for(int r: bin){ int mao = i; mao |= (r << 7); mao |= (bi<< 4); bi++; send(mao); } } }
#include "encoder.h" #include "encoderlib.h" #include "bits/stdc++.h" using namespace std; #define all(x) x.begin(), x.end() #define pii pair<int,int> #define pb push_back void encode(int N, int M[]) { int i; for(i = 0; i < N; i++){ int x = M[i], bi = 0; vector<int> bin; int d = x; while(d){ bin.pb(d&1); d /= 2; } for(int r: bin){ int mao = i; mao |= (r << 7); mao |= (bi<< 4); bi++; send(mao); } } }

Compilation message (stderr)

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