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_35195378_29451.cpp:14:14: error: wrong number of template arguments (1, should be 4)
  multimap<PII>v;
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:62:0,
                 from 0_0_35195378_29451.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multimap.h:95:11: error: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
     class multimap
           ^
0_0_35195378_29451.cpp:14:16: error: invalid type in declaration before ';' token
  multimap<PII>v;
                ^
0_0_35195378_29451.cpp: In function 'void add()':
0_0_35195378_29451.cpp:22:5: error: request for member 'insert' in 'v', which is of non-class type 'int'
   v.insert({{k,cnt},x});
     ^
0_0_35195378_29451.cpp:23:19: error: request for member 'size' in 'v', which is of non-class type 'int'
   printf("%d\n",v.size());
                   ^
0_0_35195378_29451.cpp: In function 'void find()':
0_0_35195378_29451.cpp:29:18: error: wrong number of template arguments (1, should be 4)
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:62:0,
                 from 0_0_35195378_29451.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multimap.h:95:11: error: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
     class multimap
           ^
0_0_35195378_29451.cpp:29:30: error: invalid type in declaration before 'it'
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                              ^
0_0_35195378_29451.cpp:29:30: error: expected ';' before 'it'
0_0_35195378_29451.cpp:29:30: error: 'it' was not declared in this scope
0_0_35195378_29451.cpp:29:37: error: request for member 'begin' in 'v', which is of non-class type 'int'
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                                     ^
0_0_35195378_29451.cpp:29:51: error: request for member 'end' in 'v', which is of non-class type 'int'
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                                                   ^
0_0_35195378_29451.cpp:29:56: error: expected ')' before ';' token
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                                                        ^
0_0_35195378_29451.cpp:29:57: error: 'it' was not declared in this scope
  for(multimap<PII>::iterator it = v.begin();it!=v.end();it++)
                                                         ^


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-22 20:56:34, Gzip enabled