0_0_39096985_32036.cpp: In function 'bool canPack(int, int, int)':
0_0_39096985_32036.cpp:8:12: error: request for member 'begin' in 'v', which is of non-class type 'int'
8 | sort(v.begin(), v.end());
| ^~~~~
0_0_39096985_32036.cpp:8:23: error: request for member 'end' in 'v', which is of non-class type 'int'
8 | sort(v.begin(), v.end());
| ^~~
0_0_39096985_32036.cpp:9:12: error: request for member 'begin' in 'w', which is of non-class type 'int'
9 | sort(w.begin(), w.end());
| ^~~~~
0_0_39096985_32036.cpp:9:23: error: request for member 'end' in 'w', which is of non-class type 'int'
9 | sort(w.begin(), w.end());
| ^~~
0_0_39096985_32036.cpp:12:14: error: invalid types 'int[int]' for array subscript
12 | if (v[i] < w[i]) {
| ^
0_0_39096985_32036.cpp:12:21: error: invalid types 'int[int]' for array subscript
12 | if (v[i] < w[i]) {
| ^
0_0_39096985_32036.cpp: In function 'int main()':
0_0_39096985_32036.cpp:38:24: error: cannot convert 'std::vector<int>' to 'int'
38 | if (canPack(n, v, w)) {
| ^
| |
| std::vector<int>
0_0_39096985_32036.cpp:7:24: note: initializing argument 2 of 'bool canPack(int, int, int)'
7 | bool canPack(int n,int v,int w) {
| ~~~~^
|