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_34071831_16707.cpp:92:5: error: conflicting declaration 'std::pair<int, int> A'
 pii A, B, C;
     ^
0_0_34071831_16707.cpp:7:43: note: previous declaration as 'int A [20000100]'
 int S[N], ch[N][2], n, m, l, r, x, rt, q, A[N * 20], tot = 0;
                                           ^
0_0_34071831_16707.cpp: In function 'int main()':
0_0_34071831_16707.cpp:109:7: error: incompatible types in assignment of 'std::pair<int, int>' to 'int [20000100]'
     A = split(rt, l - 1);
       ^
0_0_34071831_16707.cpp:110:17: error: request for member 'second' in 'A', which is of non-class type 'int [20000100]'
     B = split(A.second, r - l + 1);
                 ^
0_0_34071831_16707.cpp:111:21: error: request for member 'first' in 'A', which is of non-class type 'int [20000100]'
     int w = merge(A.first, B.second);
                     ^
0_0_34071831_16707.cpp:116:7: error: incompatible types in assignment of 'std::pair<int, int>' to 'int [20000100]'
     A = split(rt, l - 1);
       ^
0_0_34071831_16707.cpp:117:17: error: request for member 'second' in 'A', which is of non-class type 'int [20000100]'
     B = split(A.second, r - l + 1);
                 ^
0_0_34071831_16707.cpp:119:18: error: request for member 'first' in 'A', which is of non-class type 'int [20000100]'
     rt = merge(A.first, merge(B.first, B.second));
                  ^


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-01 12:16:56, Gzip enabled