Submission #481298

#TimeUsernameProblemLanguageResultExecution timeMemory
481298unknownnnnParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include <iostream> using namespace std; void encode(int n,int m[]) { int j=0; for(int i=0 ; i<n ; i++) { m[i]=(m[i]+j); j+=2; } for(int i=0 ; i<n ; i++) { send(m[i]); } }
#include "encoder.h" #include "encoderlib.h" #include <iostream> using namespace std; void decode(int n, int m[]) { int niza[n]; for(int i=0 ; i<n ; i++) { int pozicija=m[i]/2; niza[pozicija]=m[i]%2; } for(int i=0 ; i<n ; i++) { output(niza[i]); } }

Compilation message (stderr)

decoder.cpp: In function 'void decode(int, int*)':
decoder.cpp:17:9: error: 'output' was not declared in this scope
   17 |         output(niza[i]);
      |         ^~~~~~