Problem fireandbeary
User samvar0907
Submission Time 2024-11-08 17:12:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fireandbeary.cpp: In function ‘long long int can_beary_escape(long long int, long long int, const std::vector<std::__cxx11::basic_string<char> >&)’:
fireandbeary.cpp:81:31: error: unable to deduce ‘std::initializer_list<auto>&&’ from ‘{0, (C - 1)}’
81 | for (int c : {0, C - 1}) {
| ^
fireandbeary.cpp:81:31: note: deduced conflicting types for parameter ‘auto’ (‘int’ and ‘long long int’)
fireandbeary.cpp:89:31: error: unable to deduce ‘std::initializer_list<auto>&&’ from ‘{0, (R - 1)}’
89 | for (int r : {0, R - 1}) {
| ^
fireandbeary.cpp:89:31: note: deduced conflicting types for parameter ‘auto’ (‘int’ and ‘long long int’)