Problem | potatosalad |
---|---|
User | dl2704 |
Submission Time | 2024-01-26 14:49:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int32_t main()’:
potatosalad.cpp:11:11: error: invalid types ‘long long int[long long int]’ for array subscript
11 | no[total] += n;
| ^
potatosalad.cpp:16:11: error: invalid types ‘long long int[long long int]’ for array subscript
16 | m += n[i];
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from potatosalad.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’:
/usr/include/c++/9/bits/stl_algo.h:1890:25: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_ite