/in/foo.cc: In function 'int main()':
/in/foo.cc:51:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=5;i++)
^~~
/in/foo.cc:59:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=1;i<=5;i++)
^~~
/in/foo.cc:62:15: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
if(a[i][j]!=0)
~~~~~~^
/in/foo.cc:60:18: note: within this loop
for(int j=1;j<=5;j++)
~^~~
/in/foo.cc:54:12: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
if(a[i][j]!=0)
~~~~~~^
/in/foo.cc:52:16: note: within this loop
for(int j=1;j<=5;j++)
~^~~
/in/foo.cc:45:16: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
if(a[i][j]!=0&&a[i][j+1]==0)
~~~~~~^
/in/foo.cc:43:17: note: within this loop
for(int j=1;j<=5;j++)
~^~~
/in/foo.cc:34:12: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
if(a[i][j]!=0)
~~~~~~^
/in/foo.cc:32:16: note: within this loop
for(int j=1;j<=5;j++)
~^~~
/in/foo.cc:28:20: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
b[i][j]=a[i][j];
~~~~~~^
/in/foo.cc:25:16: note: within this loop
for(int j=1;j<=5;j++)
~^~~
cc1plus: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
/in/foo.cc:42:15: note: within this loop
for(int i=1;i<=5;i++)
~^~~