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;
^
|