Problem | swords |
---|---|
User | ForsakenPBJ |
Submission Time | 2025-01-29 20:29:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:16:16: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int> >, std::tuple<int, int> >::value_type’ {aka ‘std::tuple<int, int>’} and ‘int’)
16 | ma = swords[0][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 s