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_39465830_10808.cpp:215:9: error: 'int Treap<T>::rank(T)' cannot be overloaded with 'int Treap<T>::rank(T)'
  215 |     int rank(T val) {//递归改循环
      |         ^~~~
0_0_39465830_10808.cpp:209:9: note: previous declaration 'int Treap<T>::rank(T)'
  209 |     int rank(T val) {
      |         ^~~~
0_0_39465830_10808.cpp:249:7: error: 'T Treap<T>::find_pre(T)' cannot be overloaded with 'T Treap<T>::find_pre(T)'
  249 |     T find_pre(T val) {//递归改循环
      |       ^~~~~~~~
0_0_39465830_10808.cpp:241:7: note: previous declaration 'T Treap<T>::find_pre(T)'
  241 |     T find_pre(T val) {
      |       ^~~~~~~~
0_0_39465830_10808.cpp:270:7: error: 'T Treap<T>::find_next(T)' cannot be overloaded with 'T Treap<T>::find_next(T)'
  270 |     T find_next(T val) {//递归改循环
      |       ^~~~~~~~~
0_0_39465830_10808.cpp:263:7: note: previous declaration 'T Treap<T>::find_next(T)'
  263 |     T find_next(T val) {
      |       ^~~~~~~~~
0_0_39465830_10808.cpp: In member function 'T Treap<T>::find_pre(T)':
0_0_39465830_10808.cpp:252:29: error: 'v' was not declared in this scope
  252 |             if (tr[u].val < v) {
      |                             ^
0_0_39465830_10808.cpp: In member function 'T Treap<T>::find_next(T)':
0_0_39465830_10808.cpp:273:30: error: 'v' was not declared in this scope
  273 |             if (tr[u].val <= v) {
      |                              ^


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-11-30 08:38:00, Gzip enabled