Problem | hackingscores |
---|---|
User | om2024 |
Submission Time | 2024-07-04 17:01:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hackingscores.cpp: In function ‘void solve()’:
hackingscores.cpp:8:13: error: invalid types ‘int[int]’ for array subscript
8 | cin >> A[i];
| ^
hackingscores.cpp:11:5: error: invalid types ‘int[int]’ for array subscript
11 | A[n] += t * k;
| ^
hackingscores.cpp:14:23: error: invalid types ‘int[int]’ for array subscript
14 | tot += (max(0ll, A[i] - A[n]) + k - 1) / k;
| ^
hackingscores.cpp:14:30: error: invalid types ‘int[int]’ for array subscript
14 | tot += (max(0ll, A[i] - A[n]) + k - 1) / k;
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from hackingscores.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAcce