Problem thumper2
User kiwiwi
Submission Time 2025-05-23 10:06:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

thumper2.cpp: In function ‘int main()’:
thumper2.cpp:21:42: error: ‘rows’ was not declared in this scope
21 | int max_row = max_row = *max_element(rows.begin(), rows.end());
| ^~~~
thumper2.cpp:22:32: error: ‘cols’ was not declared in this scope; did you mean ‘cosl’?
22 | int max_col = *max_element(cols.begin(), cols.end());
| ^~~~
| cosl
thumper2.cpp:28:39: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘<brace-enclosed initializer list>’)
28 | rabbits[i] = {rows[i], cols[i]};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/spec