encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:4:15: error: expected ';' at end of member declaration
4 | const int Lvoid encode(int N, int M[]) {
| ^~~~~
| ;
encoder.cpp:4:21: error: ISO C++ forbids declaration of 'encode' with no type [-fpermissive]
4 | const int Lvoid encode(int N, int M[]) {
| ^~~~~~
encoder.cpp:44:5: error: expected '}' at end of input
44 | }
| ^
encoder.cpp:3:21: note: to match this '{'
3 | struct BigInteger {
| ^
encoder.cpp: In member function 'int encode(int, int*)::BigInteger::encode(int, int*)':
encoder.cpp:26:1: error: 'ENGTH' does not name a type
26 | ENGTH = 20;
| ^~~~~
encoder.cpp:27:32: error: redeclaration of 'const long long int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::NUM_SIZE'
27 | const long long NUM_SIZE = 10000000000000000LL;
| ^~~~~~~~~~~~~~~~~~~
encoder.cpp:8:21: note: previous declaration 'const long long int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::NUM_SIZE'
8 | const long long NUM_SIZE = 10000000000000000LL;
| ^~~~~~~~
encoder.cpp:29:19: error: redeclaration of 'long long int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::n [20]'
29 | long long n[20];
| ^
encoder.cpp:10:15: note: previous declaration 'long long int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::n [20]'
10 | long long n[20];
| ^
encoder.cpp:30:9: error: redeclaration of 'int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::hid'
30 | int hid;
| ^~~
encoder.cpp:11:9: note: previous declaration 'int encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::hid'
11 | int hid;
| ^~~
encoder.cpp:32:5: error: 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger(int)' cannot be overloaded with 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger(int)'
32 | BigInteger(int num) {
| ^~~~~~~~~~
encoder.cpp:13:5: note: previous declaration 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger(int)'
13 | BigInteger(int num) {
| ^~~~~~~~~~
encoder.cpp:38:9: error: 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger()' cannot be overloaded with 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger()'
38 | BigInteger() { BigInteger(0); }
| ^~~~~~~~~~
encoder.cpp:19:9: note: previous declaration 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::BigInteger()'
19 | BigInteger() { BigInteger(0); }
| ^~~~~~~~~~
encoder.cpp:40:17: error: 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger& encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::operator=(int&)' cannot be overloaded with 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger& encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::operator=(int&)'
40 | BigInteger &operator=(int &other) {
| ^~~~~~~~
encoder.cpp:21:17: note: previous declaration 'encode(int, int*)::BigInteger::encode(int, int*)::BigInteger& encode(int, int*)::BigInteger::encode(int, int*)::BigInteger::operator=(int&)'
21 | BigInteger &operator=(int &other) {
| ^~~~~~~~
encoder.cpp:44:5: error: expected '}' at end of input
44 | }
| ^
encoder.cpp:6:21: note: to match this '{'
6 | struct BigInteger {
| ^
encoder.cpp:44:5: error: expected unqualified-id at end of input
44 | }
| ^
encoder.cpp:44:5: error: expected '}' at end of input
encoder.cpp:4:44: note: to match this '{'
4 | const int Lvoid encode(int N, int M[]) {
| ^
encoder.cpp:44:5: warning: no return statement in function returning non-void [-Wreturn-type]
44 | }
| ^
encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:44:5: error: expected unqualified-id at end of input
encoder.cpp:44:5: error: expected '}' at end of input
encoder.cpp:1:29: note: to match this '{'
1 | void encode(int N, int M[]) {
| ^
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:23:5: error: expected '}' at end of input
23 | }
| ^
decoder.cpp:3:21: note: to match this '{'
3 | struct BigInteger {
| ^
decoder.cpp:23:5: error: expected unqualified-id at end of input
23 | }
| ^
decoder.cpp:23:5: error: expected '}' at end of input
decoder.cpp:1:36: note: to match this '{'
1 | void decode(int N, int L, int X[]) {
| ^