Problem swords
User JamesPearman
Submission Time 2024-02-21 21:41:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp:4:10: error: ‘pii’ was not declared in this scope
4 | bool cmp(pii a,pii b){
| ^~~
swords.cpp:4:16: error: ‘pii’ was not declared in this scope
4 | bool cmp(pii a,pii b){
| ^~~
swords.cpp:4:21: error: expression list treated as compound expression in initializer [-fpermissive]
4 | bool cmp(pii a,pii b){
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from swords.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::pair<long long int, long long int>*; _Iterator2 = std::pair<long long int, lo