encoder.cpp:8:1: error: 'map' does not name a type; did you mean 'mapa2'?
8 | map<long long ,int> mapa;
| ^~~
| mapa2
encoder.cpp: In function 'void rec(int, int, long long int, int)':
encoder.cpp:14:9: error: 'mapa' was not declared in this scope; did you mean 'mapa2'?
14 | mapa[s]=broj;
| ^~~~
| mapa2
encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:65:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
65 | else
| ^~~~
encoder.cpp:68:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
68 | if (i%2==1 || i==n-1)
| ^~
encoder.cpp:73:13: error: 'string' was not declared in this scope
73 | string s= "";
| ^~~~~~
encoder.cpp:73:13: note: suggested alternatives:
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from encoder.cpp:1:
/usr/include/c++/10/bits/stringfwd.h:79:33: note: 'std::string'
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from encoder.cpp:1:
/usr/include/c++/10/string:67:11: note: 'std::pmr::string'
67 | using string = basic_string<char>;
| ^~~~~~
encoder.cpp:79:17: error: 's' was not declared in this scope
79 | s=(char)(x%10 + '0') + s;
| ^
encoder.cpp:83:20: error: 's' was not declared in this scope
83 | while (s.size()<10)
| ^
encoder.cpp:89:36: error: 's' was not declared in this scope
89 | int brojce = (int)(s[j]-'0');
| ^
encoder.cpp:86:17: warning: unused variable 'array_to_send' [-Wunused-variable]
86 | int array_to_send[10];
| ^~~~~~~~~~~~~
encoder.cpp:55:9: warning: unused variable 'b' [-Wunused-variable]
55 | int b[nn*8];
| ^
decoder.cpp:8:1: error: 'map' does not name a type; did you mean 'mapa2'?
8 | map<long long ,int> mapa;
| ^~~
| mapa2
decoder.cpp: In function 'void rec(int, int, long long int, int)':
decoder.cpp:14:9: error: 'mapa' was not declared in this scope; did you mean 'mapa2'?
14 | mapa[s]=broj;
| ^~~~
| mapa2
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:52:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
52 | sort(a,a+howmany2);
| ^~~~
| std::sort
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from decoder.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
decoder.cpp:70:29: error: 'mapa' was not declared in this scope; did you mean 'mapa2'?
70 | int converted = mapa[s];
| ^~~~
| mapa2