Submission #657833

#TimeUsernameProblemLanguageResultExecution timeMemory
657833cristi_aParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "encoder.h" using namespace std; void encode(int n, int v[]) { for(int i=0; i<n; i++) { int temp = i + (v[i]<<3); send(temp); } }
#include <bits/stdc++.h> #include "decoder.h" using namespace std; void decode(int n, int cnt, int v[]) { vector<int> ans(n); for(int i=0; i<cnt; i++) { int pos = (v[i] & ((1<<3)-1)); int nr = (v[i]>>3); ans[pos] = nr; } for(int i=0; i<n; i++) output(ans[i]); }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:8:9: error: 'send' was not declared in this scope
    8 |         send(temp);
      |         ^~~~

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:12:28: error: 'output' was not declared in this scope
   12 |     for(int i=0; i<n; i++) output(ans[i]);
      |                            ^~~~~~