Problem buyingcandy
User Hijackedsoul
Submission Time 2023-12-09 11:24:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:5:2: error: ‘ll’ was not declared in this scope
5 | ll n, m, sum=0;
| ^~
buyingcandy.cpp:6:14: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | std::cin >> n >> m;
| ^
| yn
buyingcandy.cpp:6:19: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
6 | std::cin >> n >> m;
| ^
| tm
buyingcandy.cpp:7:16: error: template argument 2 is invalid
7 | std::vector<ll> arr(n);
| ^
buyingcandy.cpp:8:16: error: template argument 2 is invalid
8 | std::vector<ll> ds(m);
| ^
buyingcandy.cpp:10:20: error: invalid types ‘int[int]’ for array subscript
10 | std::cin >> arr[i];
| ^
buyingcandy.cpp:13:19: error: invalid types ‘int[int