Problem competition
User vuongnva
Submission Time 2024-01-11 21:35:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:7:17: error: conflicting declaration ‘std::vector<int> a’
7 | vector<int> a(n);
| ^
competition.cpp:4:12: note: previous declaration as ‘int a’
4 | int n, a, b;
| ^
competition.cpp:8:17: error: conflicting declaration ‘std::vector<int> b’
8 | vector<int> b(n);
| ^
competition.cpp:4:15: note: previous declaration as ‘int b’
4 | int n, a, b;
| ^
competition.cpp:11:19: error: invalid types ‘int[int]’ for array subscript
11 | cin >> a[i];
| ^
competition.cpp:15:19: error: invalid types ‘int[int]’ for array subscript
15 | cin >> b[i];
| ^
competition.cpp:18:12: error: request for member ‘rbegin’ in ‘a’, which is of non-class type ‘int’
18 | sort(a.rbeg