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_38806933_4397.cpp: In function 'void solve()':
0_0_38806933_4397.cpp:150:8: error: 'struct BIT<long long int>' has no member named 'build'
  150 |     tr.build(1, 1, n);
      |        ^~~~~
0_0_38806933_4397.cpp:170:32: error: 'struct BIT<long long int>' has no member named 'update'
  170 |         if (pos[i][1] != 1) tr.update(1, 1, n, 1, pos[i][1] - 1, x[id[pos[i][1]]], -1);
      |                                ^~~~~~
0_0_38806933_4397.cpp:171:37: error: 'struct BIT<long long int>' has no member named 'update'
  171 |         if (pos[i][tot[i]] != n) tr.update(1, 1, n, pos[i][tot[i]] + 1, n, -x[id[pos[i][tot[i]]]], 1);
      |                                     ^~~~~~
0_0_38806933_4397.cpp: In instantiation of 'T BIT<T>::addrange(int, int, T) [with T = long long int]':
0_0_38806933_4397.cpp:163:24:   required from here
0_0_38806933_4397.cpp:98:27: error: return-statement with no value, in function returning 'long long int' [-fpermissive]
   98 |                 if(l > r) return ;
      |                           ^~~~~~


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 18:00:57, Gzip enabled