Problem | bananasmoothie |
---|---|
User | ky |
Submission Time | 2023-09-03 01:46:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:16:13: error: ‘class std::vector<long long int>’ has no member named ‘pushback’; did you mean ‘push_back’?
16 | arr.pushback(i);
| ^~~~~~~~
| push_back
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
| ^~~