Problem flybot
User user123
Submission Time 2026-08-26 21:26:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flybot.cpp: In function ‘int main()’:
flybot.cpp:37:52: error: no match for ‘operator%’ (operand types are ‘long long int’ and ‘std::queue<std::pair<long long int, long long int> >’)
37 | vis[tx][ty]=(vis[tx][ty]+vis[x][y])%q;
| ~~~~~~~~~~~~~~~~~~~~~~~^~
| | |
| | std::queue<std::pair<long long int, long long int> >
| long long int
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from flybot.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__modulus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::