Problem swords
User PlayVoltz
Submission Time 2023-07-26 22:29:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:30:18: 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
30 | ll temp = vect[0];
| ^
swords.cpp:33:12: error: request for member ‘first’ in ‘temp’, which is of non-class type ‘long long int’
33 | if (temp.first>=vect[i].first){
| ^~~~~
swords.cpp:39: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 ‘long long int’ in assignment
39 | temp = vect[i];
| ^
swords.cpp:42:15: error: cannot convert ‘__gnu_cxx::__alloc_trai