Problem cake3
User bribritt
Submission Time 2024-01-11 18:11:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cake3.cpp: In function ‘long long int qry(long long int, long long int)’:
cake3.cpp:44:1: error: jump to label ‘school’
44 | school:
| ^~~~~~
cake3.cpp:38:36: note: from here
38 | if(st.size()<m) {ans-=v[r]; goto school;}
| ^~~~~~
cake3.cpp:39:8: note: crosses initialization of ‘__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<long long int, long unsigned int, std::allocator<char> >*, long long int, long long int*, const long long int*, long long int&, const long long int&, true, std::allocator<char> > it’
39 | auto it = st.find_by_order(m-1);
| ^~
cake3.cpp:54:1: error: jump to label ‘school2’
54 | school2:
| ^~~~~~~
cake3.cpp:48:36: note: from here
48 | if(st.size()<m) {ans-=v[l]; goto school2;}
| ^~~~~~~
cake3.cpp:49:8: note: crosses initiali