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_11436774_6549.cpp: In function `int main()':
0_0_11436774_6549.cpp:21: error: pointer to a function used in arithmetic
0_0_11436774_6549.cpp:21: error: assignment of read-only location
0_0_11436774_6549.cpp:21: error: cannot convert `int' to `int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)' in assignment
0_0_11436774_6549.cpp:40: error: pointer to a function used in arithmetic
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_pair.h: At global scope:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_pair.h: In instantiation of `std::pair<const int, int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)>':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_map.h:338:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = int, _Tp = int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >), _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)> >]'
0_0_11436774_6549.cpp:21:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_pair.h:74: error: field `std::pair<const int, int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)>::second' invalidly declared function type
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_map.h: In member function `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = int, _Tp = int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >), _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)> >]':
0_0_11436774_6549.cpp:21:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_map.h:339: error: invalid cast to function type `int ()(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)'
0_0_11436774_6549.cpp:21:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_map.h:340: error: invalid initialization of reference of type 'int (&)(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)' from expression of type 'int (*)(std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >)'


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-10-05 21:30:41, Gzip enabled