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_25901504_10206.cpp: In function 'int main()':
0_0_25901504_10206.cpp:42:16: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
      mp[i][A[i]] = mp[i - 1][A[i]] + 1;
                ^
0_0_25901504_10206.cpp:42:34: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
      mp[i][A[i]] = mp[i - 1][A[i]] + 1;
                                  ^
0_0_25901504_10206.cpp:52:12: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
     mp[i][j] = mp[i - 1][j] + sum;
            ^
0_0_25901504_10206.cpp:52:27: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
     mp[i][j] = mp[i - 1][j] + sum;
                           ^
0_0_25901504_10206.cpp:61:28: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
    if(zz(c) == 1 && mp[b][c] - mp[a - 1][c] >= 1)
                            ^
0_0_25901504_10206.cpp:61:43: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
    if(zz(c) == 1 && mp[b][c] - mp[a - 1][c] >= 1)
                                           ^
0_0_25901504_10206.cpp:63:33: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
    else if(zz(c) == 1 && mp[b][c] - mp[a -1][c] == 0)
                                 ^
0_0_25901504_10206.cpp:63:47: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
    else if(zz(c) == 1 && mp[b][c] - mp[a -1][c] == 0)
                                               ^
0_0_25901504_10206.cpp:75:22: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
      if(sum > mp[b][j] - mp[a - 1][j])
                      ^
0_0_25901504_10206.cpp:75:37: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
      if(sum > mp[b][j] - mp[a - 1][j])
                                     ^


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 11:24:59, Gzip enabled