Problem swords
User ForsakenPBJ
Submission Time 2025-01-29 20:29:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:16:7: error: cannot resolve overloaded function ‘get’ based on conversion to type ‘int’
16 | ma = get<0>swords[0];
| ^~~~~~
swords.cpp:20:7: error: cannot resolve overloaded function ‘get’ based on conversion to type ‘int’
20 | md = get<1>swords[0];
| ^~~~~~
swords.cpp:23:13: error: expected ‘)’ before ‘swords’
23 | if (get<0>swords[i] < ma and get<1>swords[i] < md){
| ~ ^~~~~~
| )
In file included from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from swords.cpp:1:
/usr/include/c++/9/tuple: In instantiation of ‘struct std::tuple_element<0, std::tuple<> >’:
/usr/include/c