Problem | goofyarray |
---|---|
User | PlayVoltz |
Submission Time | 2024-08-03 16:48:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goofyarray.cpp: In function ‘int32_t main()’:
goofyarray.cpp:48:12: error: expected ‘;’ before ‘sum’
48 | ans[c.se]sum+(n-(r-l+1))*c.fi;
| ^~~
| ;
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from goofyarray.cpp:4:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<