Submission #351889

#TimeUsernameProblemLanguageResultExecution timeMemory
351889juggernautParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include"encoder.h" #include"encoderlib.h" #include<bits/stdc++.h> using namespace std; vector<int>answer; static vector<int>crack(){ return ans; } void encode(int n,int a[]){ for(int i=0;i<n;i++){ answer.push_back(a[i]); while(a[i]>63)send((i<<2)|3),a[i]-=64; while(a[i]>15)send((i<<2)|2),a[i]-=16; while(a[i]>3)send((i<<2)|1),a[i]-=4; while(a[i]>0)send((i<<2)|0),a[i]-=1; } }

Compilation message (stderr)

encoder.cpp: In function 'std::vector<int> crack()':
encoder.cpp:7:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     return ans;
      |            ^~~
      |            abs
encoder.cpp: At global scope:
encoder.cpp:6:19: warning: 'std::vector<int> crack()' defined but not used [-Wunused-function]
    6 | static vector<int>crack(){
      |                   ^~~~~

/tmp/ccfesO4k.o: In function `main':
grader_decoder.cpp:(.text.startup+0x21f): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status