Problem | traineeline |
---|---|
User | SJY123 |
Submission Time | 2023-12-13 15:02:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
traineeline.cpp: In function ‘int main()’:
traineeline.cpp:28:32: error: template argument 2 is invalid
28 | pair<long long, long longnt> f;
| ^
traineeline.cpp:29:16: 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 ‘int’ in assignment
29 | f = l.front();
| ~~~~~~~^~
| |
| __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>}
traineeline.cpp:30:16: error: request for member ‘second’ in ‘f’, which is of non-class type ‘int’
30 | if (x >= f.second)
| ^~~~~~
train