prog.cpp:1:12: error: array bound is not an integer constant before ']' token
int N,a[N];
^
prog.cpp:2:10: error: array bound is not an integer constant before ']' token
int l[N],p[N],maxl=1,maxp=0;
^
prog.cpp:2:15: error: array bound is not an integer constant before ']' token
int l[N],p[N],maxl=1,maxp=0;
^
prog.cpp:3:3: error: 'Map' does not name a type
Map<int,int> m; // <ключ,значение>
^
prog.cpp:4:3: error: expected unqualified-id before 'for'
for(int i=0;i<N;++i) {
^
prog.cpp:4:15: error: 'i' does not name a type
for(int i=0;i<N;++i) {
^
prog.cpp:4:19: error: expected unqualified-id before '++' token
for(int i=0;i<N;++i) {
^