0_0_20229154_15026.cpp: In function 'int main()':
0_0_20229154_15026.cpp:50:18: error: no matching function for call to 'unique(int [300007], long long int)'
c=unique(a,a+c-a);
^
0_0_20229154_15026.cpp:50:18: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20229154_15026.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:992:5: note: template<class _FIter> _FIter std::unique(_FIter, _FIter)
unique(_ForwardIterator __first, _ForwardIterator __last)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:992:5: note: template argument deduction/substitution failed:
0_0_20229154_15026.cpp:50:18: note: deduced conflicting types for parameter '_FIter' ('int*' and 'long long int')
c=unique(a,a+c-a);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20229154_15026.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: template<class _FIter, class _BinaryPredicate> _FIter std::unique(_FIter, _FIter, _BinaryPredicate)
unique(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: template argument deduction/substitution failed:
0_0_20229154_15026.cpp:50:18: note: deduced conflicting types for parameter '_FIter' ('int*' and 'long long int')
c=unique(a,a+c-a);
^
0_0_20229154_15026.cpp:51:29: error: 'memeset' was not declared in this scope
memeset(tree,0,sizeof(tree));
^
0_0_20229154_15026.cpp:63:13: error: no match for call to '(std::map<int, int>) (int&)'
add(m(a[i]),f[i]);
^
|