Problem splithunny
User StormyGood
Submission Time 2025-11-09 22:14:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:4:1: error: expected ‘,’ or ‘;’ before ‘int’
4 | int c[105][105];
| ^~~
splithunny.cpp: In function ‘void bfs(int, int)’:
splithunny.cpp:10:12: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(int&, int&)’
10 | q.push(i,j);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from splithunny.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate expects 1