Problem bananasmoothie
User ky
Submission Time 2023-09-03 01:47:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:19:21: error: ‘std::vector<long long int>::iterator’ {aka ‘class __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’} has no member named ‘arr’
19 | sort(arr.end(). arr.begin())
| ^~~
bananasmoothie.cpp:23:9: error: ‘sum’ was not declared in this scope
23 | sum += arr[i]
| ^~~
bananasmoothie.cpp:26:13: error: ‘sum’ was not declared in this scope
26 | cout << sum
| ^~~