Problem splithunny
User nguyendinhanh1508
Submission Time 2024-03-27 15:54:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int32_t main()’:
splithunny.cpp:30:14: error: ‘a’ was not declared in this scope
30 | cin >> a[i][j];
| ^
splithunny.cpp:35:10: error: ‘a’ was not declared in this scope
35 | if(a[i][j] = 'H' && !visited[i][j]){
| ^
splithunny.cpp:36:9: error: reference to ‘count’ is ambiguous
36 | count++;
| ^~~~~
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from splithunny.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:101:1: note: candidates are: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)’
101 | count