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_25274958_30080.cpp: In function 'int query(int, int, int)':
0_0_25274958_30080.cpp:39:23: error: no matching function for call to 'std::map<int, int>::find()'
   else if(cnt[i].find()!=cnt[i].end())ans+=cnt[i][z];
                       ^
0_0_25274958_30080.cpp:39:23: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_25274958_30080.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:859:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]
       find(const key_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:859:7: note:   candidate expects 1 argument, 0 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:874:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_type&) const [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]
       find(const key_type& __x) const
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:874:7: note:   candidate expects 1 argument, 0 provided


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-11-25 18:36:52, Gzip enabled