Problem fireandbeary
User samvar0907
Submission Time 2024-11-08 16:55:12
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:80:31: error: unable to deduce ‘std::initializer_list<auto>&&’ from ‘{0, (C - 1)}’
80 | for (int c : {0, C - 1}) {
| ^
fireandbeary.cpp:80:31: note: deduced conflicting types for parameter ‘auto’ (‘int’ and ‘long long int’)
fireandbeary.cpp:88:31: error: unable to deduce ‘std::initializer_list<auto>&&’ from ‘{0, (R - 1)}’
88 | for (int r : {0, R - 1}) {
| ^
fireandbeary.cpp:88:31: note: deduced conflicting types for parameter ‘auto’ (‘int’ and ‘long long int’)