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_36733512_4046.cpp: In member function 'int cd::rc(short int, short int, short int)':
0_0_36733512_4046.cpp:16:35: error: only constructors take member initializers
     rc(short l,short r,short tot):l(l),r(r),tot(tot){};
                                   ^
0_0_36733512_4046.cpp: In function 'int main()':
0_0_36733512_4046.cpp:59:40: error: no matching function for call to 'cd::cd(int&, int&, int)'
         cin>>l>>r;tot=0;f=0;cd ls(l,r,0);
                                        ^
0_0_36733512_4046.cpp:59:40: note: candidates are:
0_0_36733512_4046.cpp:11:8: note: cd::cd()
 struct cd
        ^
0_0_36733512_4046.cpp:11:8: note:   candidate expects 0 arguments, 3 provided
0_0_36733512_4046.cpp:11:8: note: constexpr cd::cd(const cd&)
0_0_36733512_4046.cpp:11:8: note:   candidate expects 1 argument, 3 provided
0_0_36733512_4046.cpp:11:8: note: constexpr cd::cd(cd&&)
0_0_36733512_4046.cpp:11:8: note:   candidate expects 1 argument, 3 provided
0_0_36733512_4046.cpp:78:28: error: expected primary-expression before ')' token
             rd.push_back(cd);
                            ^
0_0_36733512_4046.cpp:96:28: error: 'i' was not declared in this scope
                     tot+=L[i][p].n;
                            ^
0_0_36733512_4046.cpp:109:28: error: 'i' was not declared in this scope
                     tot-=L[i][p].n;
                            ^


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-26 06:28:38, Gzip enabled