Problem closedrooms
User Samyeobeo
Submission Time 2025-06-06 21:49:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

closedrooms.cpp: In function ‘int main()’:
closedrooms.cpp:24:15: error: reference to ‘map’ is ambiguous
24 | scanf ("%s",map[i]);
| ^~~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from closedrooms.cpp:1:
/usr/include/c++/9/bits/stl_map.h:100:11: note: candidates are: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
100 | class map
| ^~~
closedrooms.cpp:5:6: note: ‘char map [10005][10005]’
5 | char map[N][N];
| ^~~
closedrooms.cpp:28:16: error: reference to ‘map’ is ambiguous
28 | if(map[i][j] == 'S')
| ^~~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from closedrooms.cpp:1:
/usr/include/c++