Problem lineup
User Henries
Submission Time 2024-10-11 09:45:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int main()’:
lineup.cpp:12:6: error: expected unqualified-id before ‘.’ token
12 | set.insert(v[i].second);
| ^
lineup.cpp:19:25: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization
19 | long long first1 = v[i];
| ^
lineup.cpp:23:3: error: expected ‘}’ at end of input
23 | }
| ^
lineup.cpp:18:24: note: to match this ‘{’
18 | for (int i =0;i<n;i++){
| ^
lineup.cpp:23:3: error: expected ‘}’ at end of input
23 | }
| ^
lineup.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^