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_22267584_30422.cpp:9:9: error: invalid use of template-name 'std::pair' without an argument list
 typedef pair<int, int> pii;
         ^
0_0_22267584_30422.cpp:9:20: error: expected unqualified-id before ',' token
 typedef pair<int, int> pii;
                    ^
0_0_22267584_30422.cpp:9:22: error: expected unqualified-id before 'int'
 typedef pair<int, int> pii;
                      ^
0_0_22267584_30422.cpp:9:30: error: 'pii' does not name a type
 typedef pair<int, int> pii;
                              ^
0_0_22267584_30422.cpp:17:2: error: invalid use of template-name 'std::map' without an argument list
  map<int, int>info;
  ^
0_0_22267584_30422.cpp:17:12: error: expected unqualified-id before ',' token
  map<int, int>info;
            ^
0_0_22267584_30422.cpp:17:21: error: 'info' does not name a type
  map<int, int>info;
                     ^
0_0_22267584_30422.cpp: In function 'void init(int)':
0_0_22267584_30422.cpp:38:8: error: 'struct block' has no member named 'info'
   B[i].info.clear();
        ^
0_0_22267584_30422.cpp:44:18: error: 'struct block' has no member named 'info'
   ++B[belong[i]].info[arr[i]];
                  ^
0_0_22267584_30422.cpp: In function 'void pushdown(int)':
0_0_22267584_30422.cpp:53:8: error: 'struct block' has no member named 'info'
   B[x].info.clear();
        ^
0_0_22267584_30422.cpp:54:8: error: 'struct block' has no member named 'info'
   B[x].info[B[x].color] = B[x].len();
        ^
0_0_22267584_30422.cpp: In function 'void update(int, int, int)':
0_0_22267584_30422.cpp:69:12: error: 'struct block' has no member named 'info'
    --B[bl].info[arr[i]];
            ^
0_0_22267584_30422.cpp:70:12: error: 'struct block' has no member named 'info'
    ++B[bl].info[c];
            ^
0_0_22267584_30422.cpp:75:12: error: 'struct block' has no member named 'info'
    --B[br].info[arr[i]];
            ^
0_0_22267584_30422.cpp:76:12: error: 'struct block' has no member named 'info'
    ++B[br].info[c];
            ^
0_0_22267584_30422.cpp:85:12: error: 'struct block' has no member named 'info'
    --B[bl].info[arr[i]];
            ^
0_0_22267584_30422.cpp:86:12: error: 'struct block' has no member named 'info'
    ++B[bl].info[c];
            ^
0_0_22267584_30422.cpp: In function 'int query(int, int, int)':
0_0_22267584_30422.cpp:101:13: error: 'struct block' has no member named 'info'
    if (B[i].info.find(c) != B[i].info.end())
             ^
0_0_22267584_30422.cpp:101:34: error: 'struct block' has no member named 'info'
    if (B[i].info.find(c) != B[i].info.end())
                                  ^
0_0_22267584_30422.cpp:102:17: error: 'struct block' has no member named 'info'
     ret += B[i].info[c];
                 ^


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.015600(s) query 1, Server time : 2024-11-25 18:30:27, Gzip enabled