Problem flooding2
User Aviansh1234
Submission Time 2025-12-04 03:27:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flooding2.cpp: In function ‘int main()’:
flooding2.cpp:170:46: error: conversion from ‘array<short int,[...]>’ to non-scalar type ‘array<int,[...]>’ requested
170 | array<int,2> a = st.query(0,w+1,0,l,r);
| ~~~~~~~~^~~~~~~~~~~~~
flooding2.cpp:182:49: error: no match for ‘operator=’ (operand types are ‘std::array<int, 2>’ and ‘std::array<short int, 2>’)
182 | a = st.query(0,w+1,0,l,r);
| ^
In file included from /usr/include/c++/9/tuple:39,
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 flooding2.cpp:1:
/usr/include/c++/9/array:94:12: note: candida