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_36611322_19771.cpp: In function 'void Update(ll, ll, ll, PII)':
0_0_36611322_19771.cpp:89:59: error: 'struct node' has no member named 'st'
     if (tree[idx].l >= l && tree[idx].r <= r && tree[idx].st > 0)
                                                           ^
0_0_36611322_19771.cpp:91:19: error: 'struct node' has no member named 'st'
         tree[idx].st = k.first, tree[idx].w = k.second;
                   ^
0_0_36611322_19771.cpp:91:43: error: 'struct node' has no member named 'w'
         tree[idx].st = k.first, tree[idx].w = k.second;
                                           ^
0_0_36611322_19771.cpp:92:19: error: no match for 'operator=' (operand types are 'node2' and 'PII {aka std::pair<long long int, long long int>}')
         lazy[idx] = k;
                   ^
0_0_36611322_19771.cpp:92:19: note: candidates are:
0_0_36611322_19771.cpp:16:8: note: node2& node2::operator=(const node2&)
 struct node2
        ^
0_0_36611322_19771.cpp:16:8: note:   no known conversion for argument 1 from 'PII {aka std::pair<long long int, long long int>}' to 'const node2&'
0_0_36611322_19771.cpp:16:8: note: node2& node2::operator=(node2&&)
0_0_36611322_19771.cpp:16:8: note:   no known conversion for argument 1 from 'PII {aka std::pair<long long int, long long int>}' to 'node2&&'
0_0_36611322_19771.cpp: In function 'int main()':
0_0_36611322_19771.cpp:133:31: error: 'struct node' has no member named 'st'
             int l = tree[ans].st, r = tree[ans].st + tree[ans].w - 1;
                               ^
0_0_36611322_19771.cpp:134:49: error: 'r' was not declared in this scope
             PII l_k = {l, x - l}, r_k = {x + 1, r - x};
                                                 ^
0_0_36611322_19771.cpp:134:54: error: could not convert '{(x + 1), <expression error>}' from '<brace-enclosed initializer list>' to 'PII {aka std::pair<long long int, long long int>}'
             PII l_k = {l, x - l}, r_k = {x + 1, r - x};
                                                      ^
0_0_36611322_19771.cpp:137:23: error: 'struct node' has no member named 'st'
             tree[ans].st = -1, tree[ans].w = 0;
                       ^
0_0_36611322_19771.cpp:137:42: error: 'struct node' has no member named 'w'
             tree[ans].st = -1, tree[ans].w = 0;
                                          ^
0_0_36611322_19771.cpp:144:31: error: 'struct node' has no member named 'w'
             cout << tree[ans].w << endl;
                               ^
0_0_36611322_19771.cpp:151:31: error: 'struct node' has no member named 'st'
             int l = tree[ans].st, r = tree[ans].st + tree[ans].w - 1;
                               ^
0_0_36611322_19771.cpp:152:49: error: 'r' was not declared in this scope
             PII l_k = {l, x - l}, r_k = {x + 1, r - x};
                                                 ^
0_0_36611322_19771.cpp:152:54: error: could not convert '{(x + 1), <expression error>}' from '<brace-enclosed initializer list>' to 'PII {aka std::pair<long long int, long long int>}'
             PII l_k = {l, x - l}, r_k = {x + 1, r - x};
                                                      ^
0_0_36611322_19771.cpp:154:9: error: expected ';' before '}' token
         }
         ^


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-07 01:21:13, Gzip enabled