| Problem | goofyarray | 
|---|---|
| User | Henries | 
| Submission Time | 2024-10-20 22:09:17 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 goofyarray.cpp: In function ‘void solve(std::vector<long long int>, std::vector<long long int>, long long int)’:
goofyarray.cpp:9:34: error: no match for ‘operator-’ (operand types are ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} and ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’)
    9 |  cout << ans + (prefixsum.size() - it)*d<<'\n';
      |                 ~~~~~~~~~~~~~~~~ ^ ~~
      |                               |    |
      |                               |    __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
      |                               std::vector<long long int>::size_type {aka long unsigned int}
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
                 from /usr/include/c++/9/bits/specfun.h:45,
                 from /usr/include/c++/9/cmath:1927,
                 from /usr/include/x