Problem area2
User dfsssssssssfsdfdssgdfs
Submission Time 2026-05-04 17:25:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area2.cpp: In function ‘int main()’:
area2.cpp:18:7: error: invalid type argument of unary ‘*’ (have ‘long long int’)
18 | a = *it;
| ^~
area2.cpp:20:20: error: no matching function for call to ‘std::__cxx11::list<long long int>::erase(long long int&)’
20 | number.erase(it);
| ^
In file included from /usr/include/c++/9/list:64,
from area2.cpp:2:
/usr/include/c++/9/bits/list.tcc:150:5: note: candidate: ‘std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(std::__cxx11::list<_Tp, _Alloc>::const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<long long int>; std::__cxx11::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<long long int>]’
150 | list<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~
/