Problem lineup
User LXYSGP
Submission Time 2026-01-21 09:18:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int main()’:
lineup.cpp:13:13: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘ff’
13 | cin>>a[i].ff>>a[i].ss;
| ^~
lineup.cpp:13:22: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘ss’
13 | cin>>a[i].ff>>a[i].ss;
| ^~
lineup.cpp:14:13: error: ‘y’ was not declared in this scope
14 | st.insert(y);
| ^
lineup.cpp:17:16: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘std::vector<std::pair<long long int, long long int> > [n]’
17 | stable_sort(a.begin(), a.end()); //smaller->bigger
| ^~~~~
lineup.cpp:17:27: error: request for member ‘end’ in ‘a’, which is of non-class type ‘std::vector<std::pair<long long int, long long int> > [n]’
17 | stab