Problem deforestation
User ybc
Submission Time 2023-11-27 13:48:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deforestation.cpp: In function ‘int main()’:
deforestation.cpp:17:14: error: assignment of member ‘std::pair<long long int, long long int>::first’ in read-only object
17 | (*it2).first+=(*it2).second;
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~