F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 05:15:12, Gzip enabled