Problem woodcutter
User LCJLY
Submission Time 2023-02-19 23:02:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

woodcutter.cpp: In function ‘long long int horizontal_cut(int)’:
woodcutter.cpp:22:54: error: conversion from ‘_Rb_tree_const_iterator<int>’ to non-scalar type ‘_Rb_tree_const_iterator<long long int>’ requested
22 | multiset<long long>::iterator it=hcut.lower_bound(X);
| ~~~~~~~~~~~~~~~~^~~
woodcutter.cpp: In function ‘long long int vertical_cut(int)’:
woodcutter.cpp:46:54: error: conversion from ‘_Rb_tree_const_iterator<int>’ to non-scalar type ‘_Rb_tree_const_iterator<long long int>’ requested
46 | multiset<long long>::iterator it=vcut.lower_bound(Y);
| ~~~~~~~~~~~~~~~~^~~