/in/foo.cc: In function 'char get()':
/in/foo.cc:12:13: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
char c; while (((c = getchar()) < 'A' || c > 'E') && c != '@'
^~~~~
/in/foo.cc:13:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
&& c != '$' && c != '.' && c != '#'); return c;
^~~~~~
/in/foo.cc: In function 'double chkmax(double&, double)':
/in/foo.cc:19:51: warning: no return statement in function returning non-void [-Wreturn-type]
double chkmax(double &a, double b) {a = max(a, b);}
^
/in/foo.cc: In function 'void init()':
/in/foo.cc:33:36: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
if (xx != ((i >> j - 1) & 1)) {flag = 0; break;}
~~^~~
/in/foo.cc:35:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (!flag) continue; s1 += pb[i];
^~
/in/foo.cc:35:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (!flag) continue; s1 += pb[i];
^~
/in/foo.cc:37:49: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
if (cyx(S, j) != 2 || !((i >> j - 1) & 1)) continue;
~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:68:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
^~
/in/foo.cc:68:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
^~
/in/foo.cc:67:30: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i = 1; i <= m; i++) for (j = 1; j <= n; j++)
^~~
/in/foo.cc:68:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
^~
/in/foo.cc:70:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i = 1; i <= K; i++) pw[i] = pw[i - 1] * 3; init();
^~~
/in/foo.cc:70:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i = 1; i <= K; i++) pw[i] = pw[i - 1] * 3; init();
^~~~
/in/foo.cc:71:11: warning: 'Sy' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%.3lf\n", DP(Sx, Sy, pw[K] - 1, H));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:71:11: warning: 'Sx' may be used uninitialized in this function [-Wmaybe-uninitialized]