Problem | potatosalad |
---|---|
User | dl2704 |
Submission Time | 2024-01-26 14:55:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:5:10: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
5 | vector<n>;
| ^
potatosalad.cpp:5:10: note: expected a type, got ‘n’
potatosalad.cpp:5:10: error: template argument 2 is invalid
potatosalad.cpp:9:17: error: invalid types ‘int[int]’ for array subscript
9 | cin >> n[total];
| ^
potatosalad.cpp:14:11: error: invalid types ‘int[int]’ for array subscript
14 | 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 = int; _C