snake_escaping.cpp: In function 'int main()':
snake_escaping.cpp:51:24: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
51 | cnt[0]=cnt[1]=cnt[2]=0;
| ~~~~~^
snake_escaping.cpp:10:5: note: while referencing 'cnt'
10 | int cnt[2];
| ^~~
snake_escaping.cpp:56:26: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
56 | if(s[i]=='?') cnt[2]++, m2^=(1<<i);
| ~~~~~^
snake_escaping.cpp:10:5: note: while referencing 'cnt'
10 | int cnt[2];
| ^~~
snake_escaping.cpp:56:26: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
56 | if(s[i]=='?') cnt[2]++, m2^=(1<<i);
| ~~~~~^
snake_escaping.cpp:10:5: note: while referencing 'cnt'
10 | int cnt[2];
| ^~~
snake_escaping.cpp:61:37: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
61 | if(cnt[0]<cnt[1] && cnt[0]<cnt[2]){
| ~~~~~^
snake_escaping.cpp:10:5: note: while referencing 'cnt'
10 | int cnt[2];
| ^~~
snake_escaping.cpp:68:25: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
68 | else if(cnt[1]<cnt[2]){
| ~~~~~^
snake_escaping.cpp:10:5: note: while referencing 'cnt'
10 | int cnt[2];
| ^~~