Problem swords
User Duk168
Submission Time 2025-02-17 17:14:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:8:9: error: ‘pll’ was not declared in this scope; did you mean ‘ll’?
8 | vector<pll> v(n);
| ^~~
| ll
swords.cpp:8:12: error: template argument 1 is invalid
8 | vector<pll> v(n);
| ^
swords.cpp:8:12: error: template argument 2 is invalid
swords.cpp:13:13: error: invalid types ‘int[long long int]’ for array subscript
13 | cin >> v[i].first >> v[i].second;
| ^
swords.cpp:13:27: error: invalid types ‘int[long long int]’ for array subscript
13 | cin >> v[i].first >> v[i].second;
| ^
swords.cpp:15:9: error: request for member ‘rbegin’ in ‘v’, which is of non-class type ‘int’
15 | sort(v.rbegin(), v.rend()); //sort as first element
| ^~~~~~
swords.cpp:15:21: error: request for member ‘rend’ in ‘v’, which is of non-class type