/in/foo.cc: In function 'int main()':
/in/foo.cc:9:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    9 |         for (int i = 0; i < n; i++)
      |         ^~~
/in/foo.cc:11:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   11 |             for (int i = 0; i < n; i++) {
      |             ^~~
/in/foo.cc:19:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   19 |           if(w=n-1)
      |              ~^~~~
/in/foo.cc:6:13: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
    6 |         int flag = 0;
      |             ^~~~