gondola.cpp:13:8: error: wrong number of template arguments (1, should be at least 2)
map<int> same;
^
In file included from /usr/include/c++/5/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:80,
from gondola.cpp:2:
/usr/include/c++/5/bits/stl_map.h:96:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
class map
^
gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:24:44: error: invalid types 'int[int]' for array subscript
for(int i=0; i<N; i++) same[inputSeq[i]]++;
^
gondola.cpp:25:19: error: 'begin' was not declared in this scope
for(auto it : same) if(it.second > 1) return 0;
^
gondola.cpp:25:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94:0,
from gondola.cpp:2:
/usr/include/c++/5/valarray:1206:5: note: 'std::begin'
begin(const valarray<_Tp>& __va)
^
/usr/include/c++/5/valarray:1206:5: note: 'std::begin'
gondola.cpp:25:19: error: 'end' was not declared in this scope
for(auto it : same) if(it.second > 1) return 0;
^
gondola.cpp:25:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94:0,
from gondola.cpp:2:
/usr/include/c++/5/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
/usr/include/c++/5/valarray:1226:5: note: 'std::end'