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_38716055_17421.cpp:20:35: error: wrong number of template arguments (1, should be at least 2)
   20 |                     map<vector<int>> &fac_pos) {
      |                                   ^~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
                 from 0_0_38716055_17421.cpp:4:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_38716055_17421.cpp: In function 'void factor_integer(int, int, int&)':
0_0_38716055_17421.cpp:23:14: error: invalid types 'int[const int]' for array subscript
   23 |       fac_pos[PRIME[i]].push_back(pos);
      |              ^
0_0_38716055_17421.cpp:28:12: error: invalid types 'int[int]' for array subscript
   28 |     fac_pos[x].push_back(pos);
      |            ^
0_0_38716055_17421.cpp: In function 'int main()':
0_0_38716055_17421.cpp:57:28: error: invalid initialization of reference of type 'int&' from expression of type 'std::vector<std::vector<int> >'
   57 |       factor_integer(i, a, fpa);
      |                            ^~~
0_0_38716055_17421.cpp:20:39: note: in passing argument 3 of 'void factor_integer(int, int, int&)'
   20 |                     map<vector<int>> &fac_pos) {
      |                     ~~~~~~~~~~~~~~~~~~^~~~~~~


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-30 00:32:07, Gzip enabled