nautilus.cpp: In function 'int main()':
nautilus.cpp:22:20: error: 'reach' was not declared in this scope
22 | temp[i] = (reach[i] >> 1) | (reach[i] << 1);
| ^~~~~
nautilus.cpp:29:10: error: 'w' was not declared in this scope
29 | if(w == 'S'){
| ^
nautilus.cpp:30:15: error: 'reach' was not declared in this scope
30 | if(i) reach[i] = reach[i - 1] & aa[i];
| ^~~~~
nautilus.cpp:31:14: error: 'reach' was not declared in this scope
31 | else reach[i].reset();
| ^~~~~
nautilus.cpp:34:35: error: 'w' was not declared in this scope
34 | for(int i = 0; i < r; i++) if(w == '?') reach[i] = temp[i];
| ^
nautilus.cpp:34:45: error: 'reach' was not declared in this scope
34 | for(int i = 0; i < r; i++) if(w == '?') reach[i] = temp[i];
| ^~~~~
nautilus.cpp:37:37: error: 'reach' was not declared in this scope
37 | for(int i = 0; i < r; i++) ans += reach.count();
| ^~~~~